Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tried running conversation_GAN.py . gave error. #1

Open
foobarchamp opened this issue Mar 1, 2018 · 1 comment
Open

tried running conversation_GAN.py . gave error. #1

foobarchamp opened this issue Mar 1, 2018 · 1 comment

Comments

@foobarchamp
Copy link

File "conversation_GAN.py", line 96
if raw_word[-1] <> '!' and raw_word[-1] <> '?' and raw_word[-1] <> '.' and raw_word[-2:] <> '! ' and raw_word[-2:] <> '? ' and raw_word[-2:] <> '. ':
^
SyntaxError: invalid syntax

@oswaldoludwig
Copy link
Owner

oswaldoludwig commented Mar 1, 2018

You are probably using Python 3 and this project uses Python 2. The comparison operator <> has been removed from Python 3, you should replace it by !=

See: https://stackoverflow.com/questions/40211270/is-there-a-difference-between-and-operators-in-python

If this replacement solved your problem, please close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants