Coder Social home page Coder Social logo

emosent-py's People

Contributors

mrmindy avatar omkar-foss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emosent-py's Issues

UnicodeDecodeError

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.