chenyangh / DSLP

Deeply Supervised, Layer-wise Prediction-aware (DSLP) Transformer for Non-autoregressive Neural Machine Translation
MIT License
43 stars 5 forks source link

How to install dependencies and run? #1

Closed zkx06111 closed 2 years ago

zkx06111 commented 3 years ago

I first ran pip install --editable . and ran your training script. The error was ModuleNotFoundError: No module named 'tensorflow'. I found that the tensorflow in file_io was a hack so I removed all the related lines. However, it still produces the following error

  File "/tmp/DSLP/fairseq/criterions/__init__.py", line 18, in <module>
    (
TypeError: cannot unpack non-iterable NoneType object
zkx06111 commented 3 years ago

I tried to install lunanlp and fuzzywuzzy and the error was gone.

zkx06111 commented 3 years ago

Also, the extra spaces at the end of some script lines should be deleted for the code to run properly.

chenyangh commented 3 years ago

Hi, thanks for raising the issues. I will include a script that installs all the additional packages.