Skip to content

Using Markov Chains to generate new chats from words you and your friends have used in your Messenger conversations.

License

Notifications You must be signed in to change notification settings

haseebelahi/markov-messenger-chat-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markov Messenger Chat Generator

Using Markov Chains to generate new chats from words you and your friends have used in your Messenger conversations. Generate messages which you never actually sent them but will feel like you have 😁

Setup Instructions

Follow the following steps to setup and run:

  • Install Python
  • Install markovify for using Markov Chains pip install markovify
  • Download your facebook messenger chat info from Settings -> Your Facebook Information -> Download Your Information. Find detailed guidline with screenshots on how to download the messenger chat data from Facebook here.
  • Extract the downloaded file and copy the messages/inbox folder to the root directory.
  • Run python markovify_chat.py t to train models on the messenger chat with each one of your contacts.
  • Run python markovify_chat.py g [firstname]_[lastname] [firstname]_[lastname] [length of conversation] e.g python markovify_chat.py g jane_doe john_doe 5

Note

  • The chat generator works good when you have a large corpus of data e.g it will work good for contacts with which you have a lot of chat history and won't work well for those who have very little chat history with you.
  • Your Messenger chat data is sensitive and private information, this repository doesn't intend to share that info with any 3rd party in any way and stays on the machine you are running this project on.

Facebook Step by Step Guide to Download Messenger Chat Data

  • Login into your account on facebook, go to Settings

  • Go to 'Your Facebook Information' tab on the left

  • Go to 'Download Your Information'

  • Select format 'JSON' and 'Media Quality' preferrably low so we can get our data quickly.

  • Unselect all except 'Messages' and press the 'Create File' button

About

Using Markov Chains to generate new chats from words you and your friends have used in your Messenger conversations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages