/Chat-Author-Predictor

predicts the author of chat or chat-line, a model trainable from whatsapp exportable chat texts

Primary LanguageJupyter NotebookOtherNOASSERTION

Whatsapp-chat-author-classifier

An awesome python application, very simple to install and run

predicts the author of chat or chat-line, a model trainable from whatsapp exportable chat texts

whatsapp

Instructions

  1. Open project directory.

  2. Export whatsapp chats from your phone. Go through link for help.

  3. Use personal chats and not groupchats preferably. (optional)

  4. Create a directory named dataset and put the exported chats inside that 'dataset' directory.

  5. Open 'myname.json' and modify "name" value and by replacing "Sayan Dey" with

  6. Automated: Change mode of the file train to executable, run it and wait.

In linux terminal:

chmod +x train
./train

Manual: Run the three python script in order: WhatsApp.py, process_dataframe.py, author_classify.py

Alternative: Run the .ipynb files in jupyter or with IPython in order: WhatsApp.ipynb, process_dataframe.ipynb, author_classify.ipynb

  1. Open 'test.ipynb' with jupyter or ipython. The sentence variable is a list of strings.

Modify the strings to the text you think someone often says or texts and run it. It might match with your person in imagination.