Modifyng wordcloud data filtering.
This commit is contained in:
parent
c535993e47
commit
773d94383c
@ -9,6 +9,10 @@ wordcloudData
|
|||||||
occurrencesWords removeKeys: stopwords.
|
occurrencesWords removeKeys: stopwords.
|
||||||
occurrencesWords removeKeys: stopwordsCapitalized.
|
occurrencesWords removeKeys: stopwordsCapitalized.
|
||||||
occurrencesWords removeKey: ''.
|
occurrencesWords removeKey: ''.
|
||||||
|
|
||||||
|
occurrencesWords size > 50 ifTrue: [
|
||||||
|
occurrencesWords := (occurrencesWords associations copyFrom: 1 to: 50) asOrderedDictionary ].
|
||||||
|
|
||||||
wordAndValue := OrderedCollection new.
|
wordAndValue := OrderedCollection new.
|
||||||
occurrencesWords keysAndValuesDo: [ :k :v |
|
occurrencesWords keysAndValuesDo: [ :k :v |
|
||||||
wordAndValue add: ('{name:', ($' asString), k, ($' asString), ',value:', v asString, '}')
|
wordAndValue add: ('{name:', ($' asString), k, ($' asString), ',value:', v asString, '}')
|
||||||
|
Loading…
Reference in New Issue
Block a user