Generating a word cloud from a text file that contains phrases related to AI and ML. A word cloud is an image made of words that together resemble a cloudy shape. The size of a word shows how important it is e.g. how often it appears in a text — its frequency. People typically use word clouds to easily produce a summary of large documents (reports, speeches), to create art on a topic (gifts, displays) or to visualise data (tables, surveys).
Use the package manager pip to install packages needed.
pip install wordcloud
pip install fileupload
pip install ipywidgets
jupyter nbextension install --py --user fileupload
jupyter nbextension enable --py fileupload
import wordcloud
import numpy as np
from matplotlib import pyplot as plt
from IPython.display import display
import fileupload
import io
import sys
Check out the code section for the notebook file
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.