Datasets:
How to read Arabic?
#4
by
viktoroo
- opened
As far as I understand, Arabic dataset requires specific decoding? I am confused about the symbols at the end of each word
Maybe this function works for you (from https://github.com/bnmin/arabic_coref/blob/main/minimize.py):
def normalize_word(word, language):
if language == "arabic":
word = word[:word.find("#")]
if word == "/." or word == "/?":
return word[1:]
else:
return word
This might help as well: https://github.com/juntaoy/aracoref/blob/main/preprocess_arabic.py