Given that datasets location is currently hardcoded you need to go on src and then execute main.py. If you are on macOS you may need to execute pythonw instead of python
cd src
python main.py
Here you can find the documentation of wordcloud API. For further usage see examples from github
usage example:
from wordcloud import WordCloud
import matplotlib.pyplot as plt
TRAIN_SET_FILE = '../datasets/test_wordcloud.txt'
text = open(TRAIN_SET_FILE).read()
wordcloud = WordCloud().generate(text)
# display the image
plt.imshow(wordcloud, interpolation='bilinear')
plt.show()
tips: to make it work you may need to run
conda install -c matplotlib
- on macos run the app as pythonw (not python)