Comments (7)
... 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'
from textblob-ar.
Please, add these files to the repository to run the code
bbc-arabic-wordlist.csv
OSAc-wordlist.csv
from textblob-ar.
I found the two lists, you can download them from sourceforge https://sourceforge.net/projects/ar-text-mining/files/Arabic-Corpora/
https://sourceforge.net/projects/ar-text-mining/files/Arabic-Corpora/OSAc-wordlist.7z/download
https://sourceforge.net/projects/ar-text-mining/files/Arabic-Corpora/bbc-arabic-wordlist.7z/download
But the function still didn't work for me.
from textblob-ar.
Thank you
it works with little modification to the code
from textblob_ar import TextBlob
from textblob_ar.correction import TextCorrection
text = 'الاذدهاز'
TextCorrection().correction(text)
TextCorrection().correction(text, top=True)
from textblob-ar.
Thank you
it works with little modification to the code
from textblob_ar import TextBlob
from textblob_ar.correction import TextCorrection
text = 'الاذدهاز'
TextCorrection().correction(text)
TextCorrection().correction(text, top=True)
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()))
from textblob-ar.
The function still doesn't work for me
from textblob-ar.
try write the path as:
The Issue is with the file location, to make sure you took it correctly click on the file and click on Copy Relative Path
or try this:
wl1 = Counter(self.words(open('textblob_ar/data/bbc-arabic-wordlist.csv',encoding="utf-8").read()))
from textblob-ar.
Related Issues (13)
- Datasets/Models Download Interface
- ModuleNotFoundError: No module named 'textblob_ar.pos_tagger'
- [Suggestion] Add to twint as a feature HOT 2
- issue in running, هل عندك علم في هذي المشكله ام لا HOT 7
- Sentiment analysis problem HOT 3
- could not install the Library
- LookupError: Could not find stanford-postagger.jar jar file at textblob_ar/data/model.jar HOT 3
- Unit test
- Fix travis-ci failing issue
- Accuracy tests and benchmark
- Docs
- Pip deployment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textblob-ar.