oswaldoludwig / Seq2seq-Chatbot-for-Keras

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

SyntaxError in conversation.py #6

Closed manabuo closed 6 years ago

manabuo commented 6 years ago

What is the Python version for this project? Because I have systax error in conversation.py as follows.

File "conversation.py", line 95 if raw_word[-1] <> '!' and raw_word[-1] <> '?' and raw_word[-1] <> '.' and raw_word[-2:] <> '! ' and raw_word[-2:] <> '? ' and raw_word[-2:] <> '. ':

oswaldoludwig commented 6 years ago

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.

mohannadrateb commented 6 years ago

replace "<>" by != , this should make it work n python 3.x