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
Release history Release notifications | RSS feed
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
Close
Hashes for BanglaProcess-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47298428641ceaa667b2d39fb63953237cab6661ec08fadbc956c8752bf79955 |
|
MD5 | 5a5e9e1b96dba4480d2e06c4469819c9 |
|
BLAKE2b-256 | 3d8ebe5a1fcf3ab045a5ac0d7e0dbc3bd7278dab03aa67f5df8bb06072442f69 |