Icon

Text_Classification_from_Forum_Posts

Assigning Topics to the KNIME Forum Posts

This workflow performs a supervised topic classification on the forum posts. The training set consists of the description files of the KNIME nodes. Topic classes are the nodes top categories in the Node Repository (IO, Data Manipulation, etc ...) from KNIME versions prio to 3.0. The model is built on this training set and applied to forum posts. Top three topics with highest probability are chosen for the post topic class. A Tree Ensemble is used as classification model.

Annotations and comments
  • KNIME Forum: Classify Topics in Posts This workflow assigns topics to the forum posts.
  • Prepare Data Set from KNIME HTML node description files. Node category is topic class. This data set is for training and evaluation of model for topic classification.
  • Train and evaluate a random forest model
  • Reads contents from the KNIME Forum site after web-crawling This node reads the pages downloaded from the KNIME Forum web site () after web crawling. The web crawling part used to be here as well as an alternative to read the prepared data. However, the KNIME Forum web site has changed over the years and the old workflows does not parse the extract content correctly anymore. If you want to implement your own web crawler, use the Palladian or the Selenium nodes. Palladian extension is available in the community extensions. The Selenium nodes can be downloaded from: http://seleniumnodes.com/
  • Train random forest model on description files and apply model to forum posts
  • Reporting In order to see the report execute the entire workflow and then click "Open the report" button in the toolbar.
  • destination folder for unzipped files
  • 1st topic
  • 2nd topic
  • 3rd topic
  • training and test set
  • remote reading from server
  • random forest
  • random forest with same config settings
  • classify posts
  • prob > 0.1
  • first 3
  • to keep the 3 rows structure
  • rm duplicates by post title
  • KNIME General
  • KNIME Users
  • create document from post content post title etc ...
  • Year
  • year + month
  • rm 2013 just started
  • only posts no comments
  • lowercase(post body)
  • lowercase(post title)
  • rm <p> from title
  • rm </p> from title
  • rm </p> from body
  • rm <p> from body
  • rm <br> from body
  • change too short titles
  • to lowercase
  • No Folds
  • 30 keywords per document
  • N <=3
  • Nr Folds
  • 15 keywords per document
  • category is node category
  • rm document
  • binary vector creation
  • by document
  • test only
  • test
  • only words in training
  • include training words missing in text
  • em -> emsimple
  • rm knime
  • rm "The following ..."
  • rm http://knime.com
  • rm konstanz
  • tf -> term frequency
  • ft -> ft - weka
  • nd -> nd - weka
  • part -> part - weka
  • rm &nbsp
  • lowercase(description)
  • lowercase(name)
  • extract node top category from URI
  • collect XML cells + URI for each node description
  • remove first part of URI
  • on each unzipped file
  • add URI as data column
  • read HTML file with node description as XML data cell
  • extract node name

Nodes

Extensions

Links