Skip to main content

Arabic NLP

Project description

Ruqia lib

This library used for Arabic NLP to process, prepare and clean the Arabic text

مكتبة مخصصة لخدمة معالجة اللغة العربية وتشمل عدد من الوظائف لتنظيف النصوص وغيرها

Install

pip install ruqia

Use

from ruqiya import ruqiya

Example

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

Clean the text. It includes all functions

text_cleaned1=ruqiya.clean_text(text)
print(text_cleaned1)

Remove repeating character

text_cleaned2=ruqiya.remove_repeating_char(text)
print(text_cleaned2)

Remove punctuations

text_cleaned3=ruqiya.remove_punctuations(text)
print(text_cleaned3)

Normalize Arabic

text_cleaned4=ruqiya.normalize_arabic(text)
print(text_cleaned4)

Remove diacritics

text_cleaned5=ruqiya.remove_diacritics(text)
print(text_cleaned5)

Remove stop words

text_cleaned6=ruqiya. remove_stop_words(text)
print(text_cleaned6)

Remove emojis

text_cleaned7=ruqiya. remove_emojis(text)
print(text_cleaned7)

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.10.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

ruqia-0.0.10-py3-none-any.whl (8.8 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