Skip to main content

PyShbak

image

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)

Table of built distributions (wheels) for PyShbak 0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

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