OpenNMT Forum

Translate.py: error: unrecognized arguments: -phrase_table data/phrase_table.txt

When trying to use the phrase table with the PyTorch version, I get the following error:

translate.py: error: unrecognized arguments: -phrase_table data/phrase_table.txt

Is the phrase table not an option in the PyTorch version?

The PyTorch version does not support this option.

But it is listed in the options and pytorch features?! Perhaps the combination with ‘-replace_unk’ is necessary?

It was added in March of this year. See details in:

Ah, sorry for coming to this over old stuff.
In the details is written, that it only works with the LTMS architecture. Is there any documentation about the mentioned, guided alignment in tensorflow?

This OpenNMT-py PR added a way to train alignments with the Transformer: