Icon

03_​Sentiment_​Classification rev 1

Sentiment Analysis (Classification) of Documents

This workflow shows how to import text from a csv file, convert it to documents, preprocess the documents and transform them into numerical document vectors. Finally two predictive models are trained on the vectors to predict the sentiment class of the documents.

URL: Sentiment Classification of Documents http://www.knime.org/blog/sentiment-analysis
URL: Read more about "Lexicon-based sentiment analysis: A tutorial" https://www.knime.com/blog/lexicon-based-sentiment-analysis

The workflow reads IMDb reviews, pre-processes the documents and trains two models to predict the sentiment of movie reviews
Data Import and Preprocessing
Predictive Modeling and Scoring
Column Appender
Column Filter
Preprocessing of documents
Preprocessing
Create bit vectorsfor documents
Document Vector
Decision Tree Learner
ROC Curve (JavaScript)
Read IMDb reviews from CSV file
CSV Reader
XGBoost Tree Ensemble Learner
Color by sentiment label
Color Manager
Transformation of strings to documents
Document Creation
Extract sentiment label
Category to Class
Training / test set
Partitioning
XGBoost Predictor
Decision Tree Predictor
Scorer
Scorer
Column Filter
Joiner
Rule Engine
Misclassified
Row Filter
Column Filter
Correctly Classified
Row Filter

Nodes

Extensions

Links