SwordYork / DCNMT

Deep Character-Level Neural Machine Translation
GNU General Public License v3.0
72 stars 19 forks source link

ImportError : RECURRENTSTACK_SEPARATOR #3

Closed kadir-gunel closed 7 years ago

kadir-gunel commented 7 years ago

Hello, I am trying to make an experiment with your code. And when I execute 'python training_adam.py', I am getting import errors from blocks :

ImportError: No module named 'blocks.bricks.recurrent.misc' ; 'blocks.bricks.recurrent' is not a package.

Could you please tell me which version of Blocks are you using? I followed your guide on ReadMe and did not change anything in your code. My version of blocks is 0.2.0.

Thank you in advance

kadir-gunel commented 7 years ago

The error occurs in model.py file.

(By the way I tried to execute a blocks-example file and it runs fine.)

kadir-gunel commented 7 years ago

In my version of blocks, RECURRENTSTACK_SEPARATOR can be imported from 'blocks.bricks.recurrent' .

SwordYork commented 7 years ago

Hi, Sorry for the late reply! I think you should update your blocks.

ghost commented 7 years ago

Same problem with you and same solution with yours, thank you.