Overview:
Chatclouds is a wordcloud library which allows you to create and save a wordcloud of your whatsapp chats. The library uses wordcloud library to generate images. The preprocessing of the text from the txt files are already taken care of. The only thing you need to do is to extract your chat from WhatsApp and then using that file in your python code.
Importing chatclouds:
import chatclouds
Functions:
-
show()
Code:
from chatclouds import show
show(filename)
filename needs to be the name/ path of txt file containing your WhatsApp Chat.
What it does:
show() function returns an image of the WordCloud that has been formed from the chat after preprocessing the text and removing all the stopwords.
-
save()
Code:
from chatclouds import save
save(filename)
filename needs to be the name/ path of txt file containing your WhatsApp Chat.
What it does:
show() function saves a .png image of the WordCloud that has been formed from the chat after preprocessing the text and removing all the stopwords.
-
plot_time()
Code:
from chatclouds import common
plot_time(filename)
filename needs to be the name/ path of txt file containing your WhatsApp Chat.
What it does:
plot_time() function plots and shows a bar plot of number of messages on the y axis and 1 hour time slots on x axis.
-
common()
Code:
from chatclouds import common
common(filename)
filename needs to be the name/ path of txt file containing your WhatsApp Chat.
What it does:
common() function prints the 20 most frequently used word in the chat between two people.
Change Log
===========
0.0.4 (23/11/2020)
0.0.5 (24/11/2020)