adilzouitine / pyfeel Goto Github PK
View Code? Open in Web Editor NEWPython package for emotion analysis in French
License: MIT License
Python package for emotion analysis in French
License: MIT License
I ran the example in the repository description (given below)-
from pyFeel import Feel
test = Feel("Ma classe fonctionne bien, c'est sympathique non ?")
test.emotions()
And got this error (trace below) -
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-b6a3e1be6d31> in <module>
1 from pyFeel import Feel
----> 2 test = Feel("Ma classe fonctionne bien, c'est sympathique non ?")
3 test.emotions()
~/anaconda3/envs/py36/lib/python3.6/site-packages/pyFeel/pyFeel.py in __init__(self, text)
33 dict_name = os.path.join(scriptpath, 'feel.npy')
34
---> 35 self.dict = np.load(dict_name).item()
36 self.token = [word for word in word_tokenize(text.lower())]
37 self.sentiment = {}
~/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
438 else:
439 return format.read_array(fid, allow_pickle=allow_pickle,
--> 440 pickle_kwargs=pickle_kwargs)
441 else:
442 # Try a pickle
~/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/lib/format.py in read_array(fp, allow_pickle, pickle_kwargs)
725 # The array contained Python objects. We need to unpickle the data.
726 if not allow_pickle:
--> 727 raise ValueError("Object arrays cannot be loaded when "
728 "allow_pickle=False")
729 if pickle_kwargs is None:
ValueError: Object arrays cannot be loaded when allow_pickle=False
Information about my environment-
python v3.6.12
nltk v3.5
numpy v1.19.1
Do you know what might be causing this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.