semvec/pypi-packages huggingface dataset:
haracat 1.0.0
hAraCat �� adds diacritics to Arabic text
License: Apache License, Version 2.0
Keywords: Arabic,diacritic prediction,harakat

# hAraCat ��

hAraCat is a Python library for adding diacritics automatically to Medieval Arabic text.

# Install ��

pip install haracat

# Use ��

Diacritics can be added as follows

    from haracat import diacritics_sentence
    diacritics_sentence("الإجاج، مثلثة الأول: الستر.".split(" "))
    >> الْإِجاجُ، مُثَلَّثَةَ الْأَوَّلِ: السِّتْرُ.

First the sentence is tokenized before the diacritics are predicted.

# Credits

Khalid Alnajjar, Mika Hämäläinen, Niko Partanen and Jack Rueter