Skip to main content

Arabic NLP

Project description

Ruqia lib

Install

pip install ruqia

Use


from ruqiya import ruqiya

text="""
!!أهلا وسهلا بك في الإصدار الأول من مكتبة رقيا
هل هي المرة الأولى التي تستخدم فيها المكتبة؟!!
"""

text_cleaned1=ruqiya.clean_text(text)
print(text_cleaned1)
text_cleaned2=ruqiya.remove_repeating_char(text)
print(text_cleaned2)
text_cleaned3=ruqiya.remove_punctuations(text)
print(text_cleaned3)
text_cleaned4=ruqiya.normalize_arabic(text)
print(text_cleaned4)
text_cleaned5=ruqiya.remove_diacritics(text)
print(text_cleaned5)
text_cleaned6=ruqiya. remove_stop_words(text)
print(text_cleaned6)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ruqia-0.0.7.tar.gz (11.0 kB view hashes)

Uploaded Source

Built Distribution

ruqia-0.0.7-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page