furrutiav / data-mining-2022

repository of data-mining-2022 project
http://dim.uchile.cl/~ccarvajal/CC5205/Informe_Hito_3.html
GNU General Public License v3.0
3 stars 1 forks source link

TypeError: 'WordListCorpusReader' object is not iterable #2

Closed camilocarvajalreyes closed 2 years ago

camilocarvajalreyes commented 2 years ago

En la siguiente celda (antes de palabras más frecuentes por emoji)

%%time
wordcloud_by_label_us_train = {label: [] for label in set(df_us_mapping["label"])}
for label in wordcloud_by_label_us_train.keys():
    text = text_by_label_us_train[label]
    wordcloud = WordCloud(stopwords=stopwords, width=800, height=800, background_color="white").generate(text)
    wordcloud_by_label_us_train[label] = wordcloud
furrutiav commented 2 years ago

Debería estar ok con el último commit