omkar-foss / emosent-py Goto Github PK
View Code? Open in Web Editor NEWPython module to get Sentiment Rankings for Unicode Emojis
License: MIT License
Python module to get Sentiment Rankings for Unicode Emojis
License: MIT License
Hi. Thanks for creating such a good package for the emoji analysis.
But I find when I use the case in py, I can not run the code successfully and it gives me the following result:
Traceback (most recent call last):
File "E:\Python\毕业设计\test\0116test.py", line 2, in
from emosent import get_emoji_sentiment_rank
File "D:\Anaconda3\lib\site-packages\emosent_init_.py", line 3, in
from emosent.emosent import EMOJI_SENTIMENT_DICT, get_emoji_sentiment_rank
File "D:\Anaconda3\lib\site-packages\emosent\emosent.py", line 68, in
EMOJI_SENTIMENT_DICT = _build_dict_from_csv(
File "D:\Anaconda3\lib\site-packages\emosent\emosent.py", line 32, in _build_dict_from_csv
_header_row = next(csv_reader)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 181: illegal multibyte sequence
My code is:
from emosent import get_emoji_sentiment_rank
get_emoji_sentiment_rank('❤')
How can I do please?
I am getting the above stated error kindly help me to solve this
'charmap' codec can't decode byte 0x9d in position 180: character maps to
I think it is unable to decode the csv file
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.