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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file BanglaProcess-0.2-py3-none-any.whl.
File metadata
- Download URL: BanglaProcess-0.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47298428641ceaa667b2d39fb63953237cab6661ec08fadbc956c8752bf79955
|
|
| MD5 |
5a5e9e1b96dba4480d2e06c4469819c9
|
|
| BLAKE2b-256 |
3d8ebe5a1fcf3ab045a5ac0d7e0dbc3bd7278dab03aa67f5df8bb06072442f69
|