The goal of this workflow is to cluster a set of newsgroup documents into their corresponding topic. The data is taken from the 20 newsgroups dataset. The workflow starts with a data table containing some newsgroup documents, divided into two categories, politics.guns and sport.baseball.
First, the data are converted into documents, whose category is the class politics or sport. The documents are then preprocessed by filtering and lemmatizing. After that, the documents are transformed into a bag of words, which is filtered again. Only terms that occur at least in 1% of the documents (at least in 2 documents) will be used as features and not be filtered out. Then the documents are transformed into document vectors.
The document vectors are a numerical representation of documents and are in the following used for hierarchical clustering based on Manhattan, Euclidean, and Cosine distance measures.
URL: Newsgroup dataset http://qwone.com/~jason/20Newsgroups/
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.