Dictionary entries with #fairseq:overwrite
are not preserved in dict.txt output from fairseq-preprocess
#3705
Labels
#fairseq:overwrite
are not preserved in dict.txt output from fairseq-preprocess
#3705
🐛 Bug
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
fairseq-preprocess
with a--srcdict
that has#fairseq:overwrite
. For example, the command in the roberta pretraining tutorial https://github.com/pytorch/fairseq/blob/master/examples/roberta/README.pretraining.md#1-preprocess-the-data#fairseq:overwrite
is not preserved indict.txt
.Expected behavior
When using
--srcdict
, thedict.txt
should be exactly the same as the one passed in tofairseq-preprocess
Environment
pip
, source): pipThe text was updated successfully, but these errors were encountered: