from wordcloud import WordCloud, STOPWORDS 
import matplotlib.pyplot as plt 
import pandas as pd 
import numpy as np
from PIL import Image
import csv
# Reads 'Youtube04-Eminem.csv' file  
#df = pd.read_csv(r"Youtube04-Eminem.csv", encoding ="latin-1") 

comment_words = ' '
stopwords = set(STOPWORDS) 

'''
with open("output.csv","r") as infile:
    reader = csv.reader(infile)
    header = next(reader)

    for row in reader:
        tag = 
        # Converts each token into lowercase 
        for i in range(len(tokens)): 
            tokens[i] = tokens[i].lower() 
              
        for words in tokens: 
            comment_words = comment_words + words + ' '
      
'''
comment_words = input()
wave_mask = np.array(Image.open( "./images/circle.jpg"))

wordcloud = WordCloud(width = 800, height = 800, 
                background_color ='white', 
                stopwords = stopwords, 
                mask = wave_mask,
                min_font_size = 10).generate(comment_words) 
  
# plot the WordCloud image                        
plt.figure(figsize = (8, 8), facecolor = None) 
plt.imshow(wordcloud) 
plt.axis("off") 
plt.tight_layout(pad = 0) 
  
plt.show() 
4dcccf7fb656211a0069d1a8b6b41f3fef7fa9a2
<mask token>

<mask token>
plt.figure(figsize=(8, 8), facecolor=None)
plt.imshow(wordcloud)
plt.axis('off')
plt.tight_layout(pad=0)
plt.show()

<mask token>
comment_words = ' '
stopwords = set(STOPWORDS)
<mask token>
comment_words = input()
wave_mask = np.array(Image.open('./images/circle.jpg'))
wordcloud = WordCloud(width=800, height=800, background_color='white',
    stopwords=stopwords, mask=wave_mask, min_font_size=10).generate(
    comment_words)
plt.figure(figsize=(8, 8), facecolor=None)
plt.imshow(wordcloud)
plt.axis('off')
plt.tight_layout(pad=0)
plt.show()

from wordcloud import WordCloud, STOPWORDS
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from PIL import Image
import csv
comment_words = ' '
stopwords = set(STOPWORDS)
<mask token>
comment_words = input()
wave_mask = np.array(Image.open('./images/circle.jpg'))
wordcloud = WordCloud(width=800, height=800, background_color='white',
    stopwords=stopwords, mask=wave_mask, min_font_size=10).generate(
    comment_words)
plt.figure(figsize=(8, 8), facecolor=None)
plt.imshow(wordcloud)
plt.axis('off')
plt.tight_layout(pad=0)
plt.show()

from wordcloud import WordCloud, STOPWORDS 
import matplotlib.pyplot as plt 
import pandas as pd 
import numpy as np
from PIL import Image
import csv
# Reads 'Youtube04-Eminem.csv' file  
#df = pd.read_csv(r"Youtube04-Eminem.csv", encoding ="latin-1") 

comment_words = ' '
stopwords = set(STOPWORDS) 

'''
with open("output.csv","r") as infile:
    reader = csv.reader(infile)
    header = next(reader)

    for row in reader:
        tag = 
        # Converts each token into lowercase 
        for i in range(len(tokens)): 
            tokens[i] = tokens[i].lower() 
              
        for words in tokens: 
            comment_words = comment_words + words + ' '
      
'''
comment_words = input()
wave_mask = np.array(Image.open( "./images/circle.jpg"))

wordcloud = WordCloud(width = 800, height = 800, 
                background_color ='white', 
                stopwords = stopwords, 
                mask = wave_mask,
                min_font_size = 10).generate(comment_words) 
  
# plot the WordCloud image                        
plt.figure(figsize = (8, 8), facecolor = None) 
plt.imshow(wordcloud) 
plt.axis("off") 
plt.tight_layout(pad = 0) 
  
plt.show() 