spandan-madan / me_bot Goto Github PK
View Code? Open in Web Editor NEWBuild a bot that speaks like you!
Build a bot that speaks like you!
The clean scripts seems to write the following files in /res:
While prep_files expects to read the following:
This obviously fails.
Looks like clean_whatsapp_chats.py
tries to write to ./res
without first creating that directory if it doesn't exist.
Hey Spandan,
I cloned your repository on my system (macOS version: 10.14.1). I followed the instructions as per your README.md. After exporting the chat transcript I placed it inside the directory and then ran the python command that was mentioned on the README.
However, I get this error:
File "clean_whatsapp_chats.py", line 7, in <module>
f = open(chat_file,'r', encoding="utf8")
TypeError: 'encoding' is an invalid keyword argument for this function
I solved this problem by running python3 command. I just wanted to inform that the python script does not run with the native python command on macOS terminal.
Also, is it supposed to generate a directory named: res
Hello Spandan,
I ran the jupyter notebook file (prepare_files.ipynb) from the directory after generating the res directory. For that I used the command:
jupyter-notebook prepare_files.ipynb
Inside the jupyter notebook that opens in my browser the first code block does not run on clicking the play button and is presented by this error:
``ModuleNotFoundError Traceback (most recent call last)
in ()
1 import sys
2 sys.path.append('/usr/local/lib/python3.5/dist-packages/')
----> 3 import tensorflow as tf
4 import tensorflow_hub as hub
5 import numpy as np
ModuleNotFoundError: No module named 'tensorflow'
``
Could you help with the error? I thought that all dependencies are included in the repository. Apparently, it looks like tensorflow is absent, or is there any other issue in the code?
Thank you for the help!
Please give a list of requirements.
I tried installing tensorflow
installing tensorflow hub
nothing works... something related to:
module 'tensorflow' has no attribute 'estimator'
This is a proof of concept, and help in extending it to other kinds of chat sources would be helpful. If someone can make a PR, I would be more than happy to accept it!
Essentially, you would need to make a clean_messenger_chat.py or clean_wechat_chat.py file to create all the pickle files as are currently created from WhatsApp chats.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.