Skip to content

Commit

Permalink
Using -src_vocab to pass vocab.pt files. (OpenNMT#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvthr authored and vince62s committed Mar 11, 2019
1 parent 25547d8 commit 6bc8efe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions onmt/opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def preprocess_opts(parser):
# Dictionary options, for text corpus

group = parser.add_argument_group('Vocab')
# if you want to pass an existing vocab.pt file, pass it to
# -src_vocab alone as it already contains tgt vocab.
group.add('--src_vocab', '-src_vocab', default="",
help="Path to an existing source vocabulary. Format: "
"one word per line.")
Expand Down

0 comments on commit 6bc8efe

Please sign in to comment.