This package will help you to convert Bengali text to Banglish as well as Banglish to Bengali
These instructions will get you a copy of the project up and running on your local machine for development, testing purposes and as well as in production machine. See deployment for notes on how to deploy the project on a live system.
Minimum python version should have 3.x.x or upper
A step by step series of examples that tell you have to get a development env running
Say what the step will be
$[sudo] pip install bnbphoneticparser
OR, git clone
$ git clone https://github.com/porimol/bnbphoneticparser.git
$ cd bnbphoneticparser
$ python setup.py install
# coding=utf-8
from bnbphoneticparser import BengaliToBanglish
bengali2banglish = BengaliToBanglish()
bengali_text = "আমি বাংলাদেশি"
print(bengali2banglish.parse(bengali_text.strip()))
ami bangladeshi
# coding=utf-8
from bnbphoneticparser import BanglishToBengali
banglish2bengali = BanglishToBengali()
banglish_text = "ami banglay gan gai"
print(banglish2bengali.parse(banglish_text.strip()))
আমি বাংলায় গান গাই
Test Banglish to Bengali
pytest tests/bengalitobanglish.py
Test Bengali to Banglish
pytest tests/banglishtobengali.py
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
Bangla Phonetic Parser Python open source project.