Code Monkey home page Code Monkey logo

text_sentiment_classification's Introduction

Text_sentiment_classification

采用LSTM模型对中文文本进行感情分类

介绍

搭建卷积神经网络,使用固定预料训练来实现对文本感情色彩分类。

原理

中文分词

使用jieba分词工具直接分词。

词语映射

使用doc2num将文本映射成为高维向量。

搭建网络

使用LSTM模型训练,迭代30次。

进行预测

预测结果分为两类:积极的和消极的

说明

预测结果

[[1]]代表积极文本 [[0]]代表消极文本

素材说明

neg.xls和pos.xls以及sum.xls保存了训练以及检测使用的语料

text_sentiment_classification's People

Contributors

jaschenn 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.