Skip to main content

No project description provided

Project description

Bangla Textual Data Preprocessor(BanglaProcess)

This documents introduces the use cases and examples where the BanglaProcess module can be easily used.

Installation:

pip install BanglaProcess

Usage:

import BanglaProcess as bp
s =  "জাহাজ এই প্রথমবারের মত ওঠা, সাগেরর মাজখান দিয়ে যাওয়ার সময়গ‍ুলো ম্যাজিক্যাল ছিল একদম। আহা peace❤❤❤। ১০-১২ ঘন্টা কিভাবে কেটে গেলো টের ই পেলাম নাহ!!!"
s = bp.remove_punc(s)
print(s)
s = bp.remove_digits(s)
print(s)
s = bp.remove_nonBangla(s)
print(s)
s = bp.remove_emoticons(s)
print(s)

Output:

জাহাজ এই প্রথমবারের মত ওঠা সাগেরর মাজখান দিয়ে যাওয়ার সময়গ‍ুলো ম্যাজিক্যাল ছিল একদম আহা peace❤❤❤ ১০-১২ ঘন্টা কিভাবে কেটে গেলো টের ই পেলাম নাহ
জাহাজ এই প্রথমবারের মত ওঠা সাগেরর মাজখান দিয়ে যাওয়ার সময়গ‍ুলো ম্যাজিক্যাল ছিল একদম  আহা peace❤❤❤ ঘন্টা কিভাবে কেটে গেলো টের ই পেলাম নাহ
জাহাজ এই প্রথমবারের মত ওঠা সাগেরর মাজখান দিয়ে যাওয়ার সময়গ‍ুলো ম্যাজিক্যাল ছিল একদম  আহা ❤❤❤ ঘন্টা কিভাবে কেটে গেলো টের ই পেলাম নাহ
জাহাজ এই প্রথমবারের মত ওঠা সাগেরর মাজখান দিয়ে যাওয়ার সময়গ‍ুলো ম্যাজিক্যাল ছিল একদম  আহা ঘন্টা কিভাবে কেটে গেলো টের ই পেলাম নাহ

How to apply to Dataframe!!! 🤔

import BanglaProcess as bp
#import your dataframe
df['Text'] = df['Text'].apply(bp.remove_punc) #use any of the functions above
#or
df['Text'] = df['Text'].apply(lambda x: bp.remove_punc(str(x)))

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

BanglaProcess-0.2-py3-none-any.whl (5.2 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