Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaSapienza authored Oct 13, 2021
1 parent 072e95a commit ca8368b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/Week7.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"\n",
"> *Exercise 4* Plot the wordclouds\n",
"> * Get your lists ready for the word-cloud software\n",
"> - The package needs a single string to work on. The way that I converted my lists to a string was to simply combine all words together in one long string (separated by spaces), repeating each word according to its TF-IDF (rounded up to the nearest integer value). \n",
"> - The package needs a single string to work on. The way that I converted my lists to a string was to simply combine all words together in one long string (separated by spaces), repeating each word according to its TC-IDF, which is the Term Count (TF not normalized by len of document) and IDF you previously computed (rounded up to the nearest integer value). \n",
"> - The `wordcloud` package looks for collocations in real texts, which is a problem when you make the list as above. The recommended fix is to simply set `collocations = False` as an option when you run the package.\n",
"> * Now, create a word-cloud for each race. Feel free to make it as fancy or non-fancy as you like. Comment on the results. \n",
">\n",
Expand Down

0 comments on commit ca8368b

Please sign in to comment.