Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] The Missing Ingredient in Zero-Shot Neural Machine Translation #1714

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix some flake
francoishernandez committed Feb 3, 2020
commit e99daafae3d36e4250dd6370846c92e1950db8b3
4 changes: 2 additions & 2 deletions onmt/utils/parse.py
Original file line number Diff line number Diff line change
@@ -121,8 +121,8 @@ def validate_train_opts(cls, opt):
"Number of attention_dropout values must match accum_steps values"

assert not(opt.max_generator_batches > 0 and opt.lambda_cosine != 0), \
"-lambda_cosine loss is not implemented for max_generator_batches > 0."

"-lambda_cosine loss is not implemented " \
"for max_generator_batches > 0."

@classmethod
def validate_translate_opts(cls, opt):