Coder Social home page Coder Social logo

bnbphoneticparser's Introduction

Bengali Phonetic Parser

This package will help you to convert Bengali text to Banglish as well as Banglish to Bengali

Getting Started

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.

Python Version

Minimum python version should have 3.x.x or upper

Installing

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

Example

Bengali to Banglish Example

# coding=utf-8
from bnbphoneticparser import BengaliToBanglish


bengali2banglish = BengaliToBanglish()
bengali_text = "আমি বাংলাদেশি"
print(bengali2banglish.parse(bengali_text.strip()))

Bengali to Banglish Output

ami bangladeshi

Banglish to Bengali Example

# coding=utf-8
from bnbphoneticparser import BanglishToBengali


banglish2bengali = BanglishToBengali()
banglish_text = "ami banglay gan gai"
print(banglish2bengali.parse(banglish_text.strip()))

Banglish to Bengali Output

আমি বাংলায় গান গাই

Running the tests

Test Banglish to Bengali

pytest tests/bengalitobanglish.py

Test Bengali to Banglish

pytest tests/banglishtobengali.py

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Credit

Bangla Phonetic Parser Python open source project.

Author :- Shuvendu Bikash

bnbphoneticparser's People

Contributors

porimol avatar alaminopu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.