Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/OpenNMT/OpenNMT.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/onmt
diff options
context:
space:
mode:
authorBo WANG <bo.wang@systrangroup.com>2017-10-24 16:09:20 +0300
committerGuillaume Klein <guillaumekln@users.noreply.github.com>2017-10-24 16:09:20 +0300
commit210d87223b7a34d7c6972e8680827dd870f9140e (patch)
tree771c1cbff5e54e83bdd70a10473d747169651100 /onmt
parentded194dad043d280a611401bc2fdf0f4c6e7ac6d (diff)
Update vocabularies when the new train-set's vocabularies are different (#411)
Diffstat (limited to 'onmt')
-rw-r--r--onmt/train/Trainer.lua4
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 ...).]]
}
}