oswaldoludwig / Seq2seq-Chatbot-for-Keras

This repository contains a new generative model of chatbot based on seq2seq modeling.
Apache License 2.0
332 stars 98 forks source link

"w" in get_train_data.py #7

Closed fsfeng closed 6 years ago

fsfeng commented 6 years ago

Hi, in lines 88 & 91 of get_train_data.py, it should be "wb" not "w" when writing to Pickle as it will otherwise cause write error.

oswaldoludwig commented 6 years ago

In case you are using Windows: https://stackoverflow.com/questions/15750660/python-file-io-w-vs-wb

oswaldoludwig commented 6 years ago

Thanks for this information that is useful for all Windows users. This project was done in Linux, Python 2.x, Theano 0.9.0, and Keras 1.0.4. The use of another configuration may require some minor adaptations.