diff options
author | Bo WANG <bo.wang@systrangroup.com> | 2017-10-24 16:09:20 +0300 |
---|---|---|
committer | Guillaume Klein <guillaumekln@users.noreply.github.com> | 2017-10-24 16:09:20 +0300 |
commit | 210d87223b7a34d7c6972e8680827dd870f9140e (patch) | |
tree | 771c1cbff5e54e83bdd70a10473d747169651100 /onmt | |
parent | ded194dad043d280a611401bc2fdf0f4c6e7ac6d (diff) |
Update vocabularies when the new train-set's vocabularies are different (#411)
Diffstat (limited to 'onmt')
-rw-r--r-- | onmt/train/Trainer.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/onmt/train/Trainer.lua b/onmt/train/Trainer.lua index 041b3735..06c9a1f3 100644 --- a/onmt/train/Trainer.lua +++ b/onmt/train/Trainer.lua @@ -77,6 +77,10 @@ local options = { [[When using translation-based validation metrics (e.g. BLEU, TER, etc.), also save the translation every this many epochs to the file `<save_model>_epochN_validation_translation.txt`. If = 0, will not save validation translation.]] + }, + { + '-update_vocab', false, + [[When training on a new train-set with a different vocabulary, update the vocabulary and save the common words' information (embedding, generator ...).]] } } |