Skip to content

sentiment analysis using IMDB data set. The code uses tensorflow to implement a sequence2vec model

Notifications You must be signed in to change notification settings

saber1988/sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sentiment-analysis

Sentiment analysis using IMDB data set. The code uses tensorflow to implement a sequence2vec model to generate a paragraph embedding, which is based on the paper: Distributed Representations of Sentences and Documents. Based on the paragraph embedding, the code uses random forest, gbdt and svc to do the sentiment classification. Among these three models, svc works best and gets an accuracy of 0.82940. This is a raw model and a lot of parameter adjustment can be done.

Below is the image of word vectors, using t-sne to reduce the dimensionality to 2
this

Below is the image of paragraph vectors, using t-sne to reduce the dimensionality to 2
this

About

sentiment analysis using IMDB data set. The code uses tensorflow to implement a sequence2vec model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages