Closed mojesty closed 6 years ago
You seem to be using a different version of Fairseq from that in the download.sh script (https://github.com/nusnlp/mlconvgec2018/blob/master/software/download.sh#L1)
The Fairseq provided in the download.sh script does not have that error in Line 54. https://github.com/shamilcm/fairseq-py/blob/master/fairseq/data.py#L54
The FairSeq from the official repo (https://github.com/pytorch/fairseq/blob/master/fairseq/data.py#L54 ) has that error in line 54.
Oh well, I restarted software/download.sh
and run.sh
gave me another error:
from fairseq import libbleu
ImportError: cannot import name 'libbleu'
Did you run the setup.py following README (https://github.com/shamilcm/fairseq-py)? Note that the Fairseq version that we have used needs PyTorch 0.2.0post3 compiled from source.
@shamilcm Hi , When I run the setup.py following README, I got a error:
(py3.5) gpower@gpower:~/zhangtianjiu/NLP/mlconvgec2018-master/software/fairseq-py/pytorch$ git reset --hard a03e5cb40938b6b3f3e6dbddf9cff8afdff72d1b HEAD is now at a03e5cb40 Remind users to submodule update.
My development environment is Linux+ Anaconda3 + Python 3.6 + CUDA 9.0
How can I solve the problem?
I used versions of fairseq that were provided by
./download.sh
script in software dir, but got into trouble:So I modified the line in
run.sh
and added--source-lang en --target-lang en
but now it wants a dictionary from me. Can you help?