Hi,
I've been trying to run the official code for fine-tuning BART on CNN/DM. When running the following lines in the terminal, I get the a module not found error:
TASK=cnn_dm
for SPLIT in train val
do
for LANG in source target
do
python -m examples.roberta.multiprocessing_bpe_encoder \
--encoder-json encoder.json \
--vocab-bpe vocab.bpe \
--inputs "$TASK/$SPLIT.$LANG" \
--outputs "$TASK/$SPLIT.bpe.$LANG" \
--workers 60 \
--keep-empty;
done
done
~/anaconda3/envs/myenv2/bin/python: Error while finding module specification for 'fairseq/examples.roberta.multiprocessing_bpe_encoder' (ModuleNotFoundError: No module named 'fairseq/examples').
I installed fairseq according to the instructions on the Github page by the authors. Please let me know if I'm doing something wrong! TIA.