googleWordCloud/googleWordCloud.py
def createWordCloud(text,searchTerm):
    """
    Create the word cloud based on the provided text and save to searchTerm.png

    Parameters
    ----------
    text : STRING
        A long string of text/words
    searchTerm : STRING
        The created word cloud will be saved to searchTerm.png.

    Returns
    -------
    None. - saves "searchTerm.png" word cloud

    """
    stopwords = set(STOPWORDS)
        
    wc = WordCloud(background_color="white", 
                   max_words=200, 
                   stopwords=stopwords, 
                   mask=None, 
                   collocations=True, 
                   width=1000, height=800)
    
    # generate word cloud
    wc.generate(text)
    
    # show
    plt.imshow(wc, interpolation='bilinear')
    plt.axis('off')
    plt.savefig(searchTerm + '.png')

    Create the word cloud based on the provided text and save to searchTerm.png

    Parameters
    ----------
    text : STRING
        A long string of text/words
    searchTerm : STRING
        The created word cloud will be saved to searchTerm.png.

    Returns
    -------
    None. - saves "searchTerm.png" word cloud

    
Create the word cloud based on the provided text and save to searchTerm.png
Parameters

text : STRING
A long string of text/words
searchTerm : STRING
The created word cloud will be saved to searchTerm.png.

Returns

None. - saves "searchTerm.png" word cloud
Create the word cloud based on the provided text and save to searchTerm . png Parameters text : STRING A long string of text / words searchTerm : STRING The created word cloud will be saved to searchTerm . png . Returns None . - saves " searchTerm . png " word cloud
def createWordCloud(text,searchTerm):
    stopwords = set(STOPWORDS)
    wc = WordCloud(background_color="white", 
                   max_words=200, 
                   stopwords=stopwords, 
                   mask=None, 
                   collocations=True, 
                   width=1000, height=800)
    wc.generate(text)
    plt.imshow(wc, interpolation='bilinear')
    plt.axis('off')
    plt.savefig(searchTerm + '.png')
def createWordCloud ( text , searchTerm ) : stopwords = set ( STOPWORDS ) wc = WordCloud ( background_color = "white" , max_words = 200 , stopwords = stopwords , mask = None , collocations = True , width = 1000 , height = 800 ) wc . generate ( text ) plt . imshow ( wc , interpolation = 'bilinear' ) plt . axis ( 'off' ) plt . savefig ( searchTerm + '.png' )
Create the word cloud based on the provided text and save to searchTerm.png
Parameters
Create the word cloud based on the provided text and save to searchTerm . png Parameters
"""
    Create the word cloud based on the provided text and save to searchTerm.png

    Parameters
    ----------
    text : STRING
        A long string of text/words
    searchTerm : STRING
        The created word cloud will be saved to searchTerm.png.

    Returns
    -------
    None. - saves "searchTerm.png" word cloud

    """ # generate word cloud # show
text
searchTerm