Icon

05 Bag of Words and Frequencies

Annotations and comments
  • Exercise: Creating a bag of words and calculating frequencies In this exercise you'll calculate word frequencies in the agendas of two different instructor-led courses, L4-TP Introduction to Text Processing and L4-TS Introduction to Time Series Analysis. 1) Execute the Preprocessed Document (L4-TP) metanode. It accesses, applies tagging, and cleans the agenda text of the L4-TP instructor-led course. 2) Create a bag of words representation of the preprocessed document 3) Calculate the absolute term frequencies (TF) in the document. Which word occurs most often? How many times? 4) Execute the Preprocessed Document (L4-TS) metanode. It accesses, tags, and cleans the agenda text of the L4-TS instructor-led course. 5) Concatenate the output with the output of the other metanode 6) Create a bag of words representation of the preprocessed documents 7) Calculate the document frequencies (DF) of the words. How many words occur in both documents? 8) Calculate the TF-IDF scores by multiplying the relative term frequencies (TF rel) with the inverse document frequencies (IDF). Which three words have the highest TF-IDF scores?
  • document frequency
  • inverse document frequency
  • Document name
  • built-in and custom list
  • session word agenda
  • only nouns
  • ignore NE location, organization, unknown
  • Parts of speech
  • Organizations
  • Regular expressions
  • Read course agenda as pdf
  • Session identifiers
  • Read course agenda as pdf (l4-ts)
  • absolute frequencies
  • term frequency

Nodes

Extensions

Links