-
Notifications
You must be signed in to change notification settings - Fork 25
FileNotFoundError: [Errno 2] No such file or directory: 'data/bbc-arabic-wordlist.csv' #13
Comments
... The error is still visible when calling TextCorrection: from textblob_ar import TextBlob
from textblob_ar.correction import TextCorrection
text = 'الاذدهاز'
TextCorrection().correct(text)
{'الاذهان', 'الازدهار', 'الادهان', 'الاندهاش'}
TextCorrection().correct(text, top=True) wl1 = Counter(self.words(open('data/bbc-arabic-wordlist.csv').read()))
FileNotFoundError: [Errno 2] No such file or directory: 'data/bbc-arabic-wordlist.csv' |
Please, add these files to the repository to run the code |
I found the two lists, you can download them from sourceforge https://sourceforge.net/projects/ar-text-mining/files/Arabic-Corpora/ But the function still didn't work for me. |
Thank you |
It needed a little more modification for me, I had to add the encoding type of the files in the correction.py script wl1 = Counter(self.words(open('bbc-arabic-wordlist.csv', encoding='utf-8').read())) |
The function still doesn't work for me |
try write the path as: |
No description provided.
The text was updated successfully, but these errors were encountered: