SHAWPACK NLP processing package
Project description
PyShbak
Now with PyShbak, dealing with Arabic texts has become easy, and in the future it will become easier with PyShbak
Installation
pip3 install PyShbak
Structure
|> PyShbak
| ------> | Normalization
|---------| ------> | Normalization_ar
|---------|---------| ------> | alef
|---------|---------| ------> | lamalef
|---------|---------| ------> | hamza
|---------|---------| ------> | tah
|---------|---------| ------> | madah
|---------|---------| ------> | normalization_all
| ------> Processor
|---------| ------> | Arabic_Processor
|---------|---------| ------> | remove_stopword
|---------|---------| ------> | remove_other_lang
|---------|---------| ------> | remove_diacritics
|---------|---------| ------> | remove_arabic_punctuations
|---------|---------| ------> | arabic_only
|---------|---------| ------> | with_out_num
|---------| ------> | English_Processor
|---------|---------| ------> | remove_stopword
|---------|---------| ------> | english_only
|---------|---------| ------> | remove_english_punctuations
|---------|---------| ------> | with_out_num
|---------| ------> | General_Processor
|---------|---------| ------> | remove_mentions
|---------|---------| ------> | remove_hasgtag
|---------|---------| ------> | remove_links
|---------|---------| ------> | remove_punctation
|---------|---------| ------> | keep_text
|---------|---------| ------> | remove_emojis
|---------|---------| ------> | remove_whitespace
|---------| ------> | cleaningtext
|---------|---------| ------> | delete_repeated_characters
|---------|---------| ------> | replace_letters
|---------|---------| ------> | clean_text
|---------|---------| ------> | remove_vowelization
|---------|---------| ------> | remove_stopword
|---------|---------| ------> | stem_text
|---------|---------| ------> | text_prepare
Example:
pip3 install PyShbak
from PyShbak.TweetsCleaner import Clean_tweet
text = 'akhhh !تَوقَعْت إذا جات داريا بشوفهم كاملين بس لي للحين احس فيه احد ناقْصهم 💔 #Avlu https://www.messenger.com/ @PyShbak '
Clean_tweet.ar(text)
output:
' توقعت اذا جات داريا بشوفهم كاملين بس لي للحين احس فيه احد ناقصهم '
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
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 PyShbak-0.3-py3-none-any.whl.
File metadata
- Download URL: PyShbak-0.3-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a3237134eb0d570ebe09aa32ecff6b17c7e9afa75805c796eec18b41ae5e4f3
|
|
| MD5 |
738643cd55f39b151a3e9835e9dbad08
|
|
| BLAKE2b-256 |
9347ff823ddcd97960c5f89cec75cc26b5a11f359e84502c6fbd4216779602ee
|