Skip to main content

No project description provided

Project description

Bangla Preprocessor (BnPreprocessing)

This page gives a basic introduction to the package.

Installation:

pip install BnPreprocessing

In Python a Bangla Linga is typically written as:

Usage:

import BnPreprocessing as pp
s =  "আমরা কাজ করবো কিভাবে?😦😦 Document তৈরী করতে আমাদের সবাইকে কি করতে হবে? নিজেদের(গ্রুপ-৬ এর সবাই) মধ্যে  কাজ ভাগ করবো কেমনে?"
s = pp.remove_punc(s)
print(s)
s = pp.remove_nonBangla(s)
print(s)
s = pp.remove_emoticons(s)
print(s)
s = pp.remove_sw(s)
print(s)

Output:

আমরা কাজ করবো কিভাবে 😦😦 Document তৈরী করতে আমাদের সবাইকে কি করতে হবে  নিজেদের গ্রুপ   এর সবাই  মধ্যে  কাজ ভাগ করবো কেমনে 
আমরা কাজ করবো কিভাবে 😦😦  তৈরী করতে আমাদের সবাইকে কি করতে হবে  নিজেদের গ্রুপ   এর সবাই  মধ্যে  কাজ ভাগ করবো কেমনে 
আমরা কাজ করবো কিভাবে   তৈরী করতে আমাদের সবাইকে কি করতে হবে  নিজেদের গ্রুপ   এর সবাই  মধ্যে  কাজ ভাগ করবো কেমনে 
করবো কিভাবে তৈরী সবাইকে গ্রুপ সবাই করবো কেমনে

If you want to do all the preprocessings in one step:

Usage:

import BnPreprocessing as pp
s =  "আমরা কাজ করবো কিভাবে?😦😦 Document তৈরী করতে আমাদের সবাইকে কি করতে হবে? নিজেদের(গ্রুপ-৬ এর সবাই) মধ্যে  কাজ ভাগ করবো কেমনে?"
s = pp.remove_noise(s)
print(s)

Output:

করবো কিভাবে তৈরী সবাইকে গ্রুপ সবাই করবো কেমনে

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

BnPreprocessing-0.9-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page