Icon

Classification

Annotations and comments
  • Task 1: Final data prep and partitioning
  • Task 2: Classification Learners, Predictors and Scorers
  • Pre-completed steps to set up the data. The CSV reader pulls from this location: knime://knime.workflow/../_INPUT/ClavisExtractUK.xlsx The flow pulls product reviews from online retailers. The words from the reviews are extracted and manipulated (see inside preprocessing node). The datatable is then pivoted and grouped together to create a count of each word in each column. A second repitition of the flow comes in below to handle the reviews that are missing the rating.
  • Step 1: Use a Rule Engine to split the sentiment from ratings into postive and negative. $review_rating$>=4 => "Pos Sentiment" TRUE => "Neg Sentiment" Then partition the data 75/25 randomly
  • Linear Logistic Regression
  • Naive Bayes
  • Decision Tree
  • Random Forest
  • Add Sentiment to our Reviews without Ratings
  • Read Online Reviews
  • Read Filenames
  • Create bag of words
  • To lower case
  • By terms (as strings)
  • Remove small words
  • Remove numbers
  • Remove punctuation marks
  • Filter bag of words
  • Keep only terms occurring in X documents
  • Reduce to word stem
  • Remove stop words
  • term frequency ***CHANGE IF FEWER REVIEWS
  • Convert terms to strings
  • Convert strings to to documents
  • Make blank table
  • Classify into sentiment

Nodes

Extensions

Links