Difference between revisions of "Orange: Word Cloud"

From OnnoWiki
Jump to navigation Jump to search
Line 34: Line 34:
 
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.
 
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
+
[[File:Word-Cloud-Example.png|center|200px|thumb]]
  
 
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.
 
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.

Revision as of 12:52, 7 January 2020

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

Membuat word cloud dari 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 menampilkan token di corpus, besar font menunjukkan frekuensi kata dalam corpus atau rata-rata jumlah Kata, ketika fitur bag of words berada di input widget. Kata-kata terdaftar berdasarkan seringnya muncul (weight) dalam widget. Widget mengeluarkan dokumen, berisi token yang dipilih dari word cloud.

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.

Contoh

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.

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