Icon

03 Enrichment II - solution

Text Mining Course: Enrichment and Preprocessing (bonus solution)

- Read files that contain positive and negative words:
MPQA-OpinionCorpus-PositiveList.csv
MPQA-OpinionCorpus-NegativeList.csv

- Assign positive and negative sentiment tags based on positive and negative word lists
- View tagged documents

URL: Slides KNIME Analytics Platform Text Mining Course https://www.knime.com/form/material-download-registration

Session 2 - Enrichment and Preprocessing

Solution 03 - Add Sentiment Tags (Bonus)

Learning objective: In this bonus exercise, you will practice enriching data by assigning positive and negative sentiment tags.


Workflow description: This workflow enriches textual data with custom sentiment (positive and negative) tags and visualizes them.


You’ll find the instructions for the exercises in the yellow annotations.

Assign positive and negative sentiment tags

  1. - Read files that contain positive and negative words:

    • MPQA-OpinionCorpus-PositiveList.csv

    • MPQA-OpinionCorpus-NegativeList.csv

  2. Assign positive and negative sentiment tags based on positive and negative word lists using the Dictionary Tagger node.

  3. View tagged documents.


Reading Textual Data
Your Solution

Enrichment
Positive list
CSV Reader
Negative list
CSV Reader
View identified tags
Tagged Document Viewer
Only documents
Column Filter
No missings
Row Filter (deprecated)
Read Tripadvisor data
Table Reader
Ceate documents
Strings to Document
Positive
Dictionary Tagger
Negative
Dictionary Tagger

Nodes

Extensions

Links