ottokart / punctuator2

A bidirectional recurrent neural network model with attention mechanism for restoring missing punctuation in unsegmented text
http://bark.phon.ioc.ee/punctuator
MIT License
659 stars 195 forks source link

Problem with data.py #31

Open gloriagennaro opened 6 years ago

gloriagennaro commented 6 years ago

Trying to run the code in data.py from my OS terminal I get this error message:

File "data.py", line 80 print "Vocabulary size: %d" % len(vocabulary) ^ SyntaxError: invalid syntax

Can you explain to me how to overcome this?

studiawan commented 6 years ago

What is the version of your python?

acerock6 commented 6 years ago

You need to use the Python version 2.7 for this particular script.

shavakagrawal commented 6 years ago

You could use the pre-installed python2 to python3 converter within python3.

ksharm50 commented 6 years ago

yes you can use <2to3 data.py>