Icon

06 Transformation - solution

There has been no title set for this workflow's metadata.

Text Mining Course: Preprocessing, Transformation, and Classification Models (solution)

- Compute relative term frequency.
- Create document vectors (bitvectors or numerical with TF values).
- Extract class label / category.

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

Session 3 - Preprocessing, Transformation, and Classification Models

Solution 06 - Transformation

Computing relative term frequency

  1. Compute relative term frequency with the TF node.

  2. Create document vectors (bitvectors or numerical with TF values) using the Document Vector node.

  3. Extract class label/category for prediction with the Document Data Extractor node.



Reading Textual Data
Enrichment
Preprocessing



Preprocessing II



Your Solution

Learning objective: In this exercise, you will practice transforming pre-processed text data.


Workflow description: This workflow computes relative term frequency, creates document vectors and extract class label/category for prediction.


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

Extract category for prediction (class label)
Document Data Extractor
Snowball Stemmer
Punctuation Erasure
Number Filter
Create document vectors
Document Vector
Read Tripadvisor data
Table Reader
GroupBy term count documents
GroupBy
Create Bag of Words
Bag Of Words Creator
Filter Bag of Words Keep only terms that occur in at least 5 documents
Reference Row Filter
Term To String
Case Converter
Create documents
Strings To Document
Assign POS tags
POS Tagger
Filter by number of documents
Row Filter
Tag Filter
Only documents
Column Filter
Compute relative term frequency
TF
Stop Word Filter
No missings
Row Filter

Nodes

Extensions

Links