GithubHelp home page GithubHelp logo

weibo_sentiment's Introduction

微博粉丝情绪分析

获取其他用户对自己微博的评论,计算情绪值,绘出变化曲线。

example

运行

需要修改 weibo_sentiment/settings.py 的包括:

  • app_key: 微博应用的 app_key
  • app_secret: 微博应用的 app_secret
  • base_url: 微博应用填写的域名
  • redirect_url: 微博应用填写的回调地址

License

MIT

weibo_sentiment's People

Contributors

shipengtaov avatar jiawen5 avatar

Stargazers

 avatar msliu98 avatar  avatar  avatar  avatar WordZzzz avatar  avatar  avatar Isabel avatar Keniwo avatar ZhaoChunyan avatar  avatar  avatar  avatar  avatar  avatar Ta Ko avatar  avatar  avatar Gecko avatar  avatar  avatar  avatar Zhao Xu avatar  avatar  avatar Chen Xupeng avatar Izzy Chen avatar qiaohaoforever avatar  avatar  avatar  avatar  avatar zonghua  avatar Faith avatar kaia avatar  avatar Zhoubin avatar GameXG avatar Jiujian Lu avatar SeasonX avatar zhiyue avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

weibo_sentiment's Issues

SnowNLP读取文件内存出错

 * Running on http://127.0.0.1:8001/ (Press CTRL+C to quit)
 * Restarting with stat
Traceback (most recent call last):
  File "weibo_sentiment/main.py", line 24, in <module>
    from weibo_sentiment import (
  File "/home/www/weibo_sentiment/weibo_sentiment/weibo_model.py", line 10, in <module>
    from snownlp import SnowNLP
  File "/usr/local/lib/python2.7/dist-packages/snownlp/__init__.py", line 5, in <module>
    from . import seg
  File "/usr/local/lib/python2.7/dist-packages/snownlp/seg/__init__.py", line 12, in <module>
    segger.load(data_path, True)
  File "/usr/local/lib/python2.7/dist-packages/snownlp/seg/seg.py", line 23, in load
    self.segger.load(fname, iszip)
  File "/usr/local/lib/python2.7/dist-packages/snownlp/seg/y09_2047.py", line 51, in load
    data = f.read()
  File "/usr/lib/python2.7/gzip.py", line 254, in read
    self._read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 313, in _read
    self._add_read_data( uncompress )
  File "/usr/lib/python2.7/gzip.py", line 331, in _add_read_data
    self.extrabuf = self.extrabuf[offset:] + data
MemoryError

requirements.txt 里面缺少了SnowNLP依赖

Traceback (most recent call last):
  File "weibo_sentiment/main.py", line 24, in <module>
    from weibo_sentiment import (
  File "/home/www/weibo_sentiment/weibo_sentiment/weibo_model.py", line 10, in <module>
    from snownlp import SnowNLP
ImportError: No module named snownlp

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.