yuqianghan / editretro

Retrosynthesis Prediction with an Iterative String Editing Model
MIT License
12 stars 3 forks source link

fairseq-preprocess: error: unrecognized arguments: #14

Open wssc2208 opened 1 month ago

wssc2208 commented 1 month ago

你好: 我已经完成了 python preprocess_data.py -dataset USPTO_50K -augmentation 20 -processes 64 -spe 但是运行到 sh binarize.sh ../datasets/USPTO_50K/aug20 dict.txt 时发生报错 fairseq-preprocess: error: unrecognized arguments: binarize.sh: 8: --trainpref: not found binarize.sh: 9: --destdir: not found binarize.sh: 10: --workers: not found binarize.sh: 11: --tgtdict: not found binarize.sh: 12: --srcdict: not found

yuqianghan commented 1 month ago

你好,错误的原因可能是因为 fairseq 没有正确安装,或者系统默认 shell 脚本不是 bash, 可以尝试一下 bash binarize.sh ../datasets/USPTO_50K/aug20 dict.txt