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

Support for Python2.7 #12

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

bikramkhastgir
Copy link

HI Chen,
I have changed a couple of lines to support Python 2.7 and also to fix mismatch of paths as stated in the program vs the folder structure. Please review it, for any further error. I checked it from my end.
Regards,
Bikram

In Python 2.7, the program needs to be run from 'keras-text-summarization' folder with the command 'python demo/seq2seq_train.py' as it will resolve the relative path mismatch from the demo folder itself. The error encountered otherwise is 'No module named keras_text_summarization.library.utility.plot_utils'
Urllib Library for Python V 2 and 3 have a slightly different syntax and functionality. Added the changes to support Python 2.7 while training.
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

Successfully merging this pull request may close these issues.

None yet

1 participant