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
657 stars 195 forks source link

Import problem with Python 3.7 #72

Open bmilde opened 3 years ago

bmilde commented 3 years ago

Hi,

we are using puntuator2 in https://github.com/uhh-lt/subtitle2go/ Thanks for creating it!

On Python 3.7 we ran into small problem. Just an FYI, we needed to change punctuator2/models.py on line 54 "from . import models" -> "import models" as the import won't work otherwise and there is an error. Not making a PR because its probably easier if you just change this one line,

Best,

Benjamin

laosuan commented 3 years ago

Python 2.7 also has the same problem, tks!