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:
' توقعت اذا جات داريا بشوفهم كاملين بس لي للحين احس فيه احد ناقصهم '
Metadata
Release files for PyShbak 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyShbak-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / PyShbak-0.3-py3-none-any.whl
| Download URL | PyShbak-0.3-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a3237134eb0d570ebe09aa32ecff6b17c7e9afa75805c796eec18b41ae5e4f3
|
|
BLAKE2b-256 checksum How to use checksums |
9347ff823ddcd97960c5f89cec75cc26b5a11f359e84502c6fbd4216779602ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|