Creating a Word Cloud
A Word Cloud visually represents word frequencies. Frequently occurring words appear larger, while less common words appear smaller.
Word Clouds are commonly used in Natural Language Processing to summarize text data.
Install WordCloud (Only Once)
!pip install wordcloudImport the Library
from wordcloud import WordCloudGenerate the Word Cloud
text = " ".join(df['clean_review'])
wordcloud = WordCloud(
width=900,
height=500,
background_color='white'
).generate(text)
plt.figure(figsize=(12,6))
plt.imshow(wordcloud)
plt.axis("off")
plt.title("Word Cloud of Customer Reviews")
plt.show()Explanation
The Word Cloud provides a visual summary of the most frequently used words across all reviews.
Larger words indicate higher frequency, while smaller words appear less often.
Fake Review Detection System using Machine Learning
VA









