Skip to main content

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)))

Metadata

Release files for BanglaProcess 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for BanglaProcess 0.2
File Interpreter ABI Platform
BanglaProcess-0.2-py3-none-any.whl Python 3 none any Details

Release files / BanglaProcess-0.2-py3-none-any.whl

Download URL BanglaProcess-0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47298428641ceaa667b2d39fb63953237cab6661ec08fadbc956c8752bf79955
BLAKE2b-256 checksum
How to use checksums
3d8ebe5a1fcf3ab045a5ac0d7e0dbc3bd7278dab03aa67f5df8bb06072442f69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page