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)
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 Distribution
ruqia-0.0.9.tar.gz
(11.0 kB
view hashes)
Built Distribution
ruqia-0.0.9-py3-none-any.whl
(8.4 kB
view hashes)