3 ms·
You may have seen my recent post about [Chatistics: a Python tool to parse your Messenger/Hangouts/WhatsApp/Telegram chat logs into DataFrames](https://news.yco
by MasterScrat 7y ago
You may have seen my recent post about [Chatistics: a Python tool to parse your Messenger/Hangouts/WhatsApp/Telegram chat logs into DataFrames](https://news.ycombinator.com/item?id=22069699 https://news.ycombinator.com/item?id=22069699).
This notebook uses the exported chat logs to train a simple GPT/GPT2 conversational model! It uses Google Colab, a notebook platform that allows you to train complex models online for free.
The approach is super simple: it takes all your chat logs, turns them into this format:
> <speaker1> Hi
> <speaker2> Hey - how are you?
> <speaker1> Great, thanks!
> ...
...then simply trains a GPT model on this corpus. In practice, I found that the default parameters (including using GPT and not GPT2) give the best resources for this setup.
This notebook will be part of our workshop "Meet your Artificial Self" happening this Saturday at AMLD 2020 in Lausanne, Switzerland: https://appliedmldays.org/workshops/meet-your-artificial-self-generate-text-that-sounds-like-you https://appliedmldays.org/workshops/meet-your-artificial-sel...
Feedback is welcome! :D
- prophesi 7y agoI definitely need to give this a whirl. Does it use Python 2 or 3, and is it as simple as importing its ipynb to run it in a local Jupyter notebook?