Giter Site home page Giter Site logo

ryfan-rs / chinesesentimentanalysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lxw0109/chinesesentimentanalysis

0.0 1.0 0.0 3.21 MB

【基于电影评论数据的中文情感分析】Chinese Sentiment Analysis based on ML(Machine Learning) and DL(Deep Learning) algorithms, such as Naive-Bayes, SVM, Decision-Tree, KNN, MLP, CNN, RNN(LSTM).

Python 100.00%

chinesesentimentanalysis's Introduction

Sentiment Analysis Implementations

Chinese Sentiment Analysis based on ML(Machine Learning) and DL(Deep Learning) algorithms, such as Naive-Bayes, SVM, Decision-Tree, KNN, MLP, CNN, RNN(LSTM).

Requirements

All code in this project is implemented in Python3.6+.
And all the essential packages are listed in requirements.txt, you can install them by pip install -r requirements.txt -i https://pypi.douban.com/simple/
Anaconda or virtualenv + virtualenvwrapper are strongly recommended to manage your Python environments.

Data Preparation

1.数据集
使用电影评论数据作为训练数据集
训练数据集20000(正向10000, 负向10000)
测试数据集6000条(正向3000, 负向3000)

2.数据处理
1.使用jieba进行分词(去除了标点符号,停用词好像没有去除?)
2.使用预训练的词向量模型,对句子进行向量化

训练与对比(准确率)

Algorithm Accuracy
Naive-Bayes {avg: 73.72%, fasttext: 74.32%, matrix: %}
Decision-Tree 0.6907
KNN 0.7909
SVM 0.8303
MLP 0.8359
CNN 0.8376
LSTM 0.8505

chinesesentimentanalysis's People

Contributors

lxw0109 avatar

Watchers

Fan avatar

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.