Orange: Word Cloud

From OnnoWiki
Revision as of 12:23, 7 January 2020 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Sumber: https://orange3-text.readthedocs.io/en/latest/widgets/wordcloud.html


Generates a word cloud from corpus.

Input

Topic: Selected topic.
Corpus: A collection of documents.

Output

Corpus: Documents that match the selection.
Selected Word: Selected word that can be used as query in Concordance.
Word Counts: Words and their weights.

Word Cloud displays tokens in the corpus, their size denoting the frequency of the word in corpus or an average bag of words count, when bag of words features are at the input of the widget. Words are listed by their frequency (weight) in the widget. The widget outputs documents, containing selected tokens from the word cloud.

../_images/Word-Cloud-stamped.png

   Information on the input.
       number of words (tokens) in a topic
       number of documents and tokens in the corpus
   Adjust the plot.
       If Color words is ticked, words will be assigned a random color. If unchecked, the words will be black.
       Word tilt adjust the tilt of words. The current state of tilt is displayed next to the slider (‘no’ is the default).
       Regenerate word cloud plot the cloud anew.
   Words & weights displays a sorted list of words (tokens) by their frequency in the corpus or topic. Clicking on a word will select that same word in the cloud and output matching documents. Use Ctrl to select more than one word. Documents matching ANY of the selected words will be on the output (logical OR).
   Save Image saves the image to your computer in a .svg or .png format.

Example

Word Cloud is an excellent widget for displaying the current state of the corpus and for monitoring the effects of preprocessing.

Use Corpus to load the data. Connect Preprocess Text to it and set your parameters. We’ve used defaults here, just to see the difference between the default preprocessing in the Word Cloud widget and the Preprocess Text widget.

../_images/Word-Cloud-Example.png

We can see from the two widgets, that Preprocess Text displays only words, while default preprocessing in the Word Cloud tokenizes by word and punctuation.



Referensi

Pranala Menarik