Icon

03_​Sentiment_​Classification

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

该工作流程读取IMDb评论,对文档进行预处理,并训练两个模型来预测电影评论的情感倾向。

数据导入和预处理

建模和评分

Column Appender
Column Filter
预处理文档
Preprocessing
为文档创建向量
Document Vector
Decision Tree Learner
ROC Curve (JavaScript)
读取数据
CSV Reader
XGBoost Tree Ensemble Learner
情感标签分颜色
Color Manager
字符串到文本出转换
Document Creation
提取情感标签
Category to Class
70%训练集合30%测试集合
Partitioning
XGBoost Predictor
Decision Tree Predictor
Scorer
Scorer

Nodes

Extensions

Links