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

If you're not sure about the file name format, learn more about wheel file names.

BnPreprocessing-1.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file BnPreprocessing-1.5-py3-none-any.whl.

File metadata

  • Download URL: BnPreprocessing-1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.5

File hashes

Hashes for BnPreprocessing-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9d12c8d55cb2ef229a42088daf8173620ed752b1ca860cd43b7b36a24d0128c3
MD5 dfb7fa49a724404dee95ac418a400b17
BLAKE2b-256 3611ba630f8355af854a14732f3f048deb0d56eb48f9ecc7428532bd1447aa69

See more details on using hashes here.

Supported by

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