Skip to content

Commit

Permalink
Restore some still needed opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Waino committed Sep 30, 2024
1 parent 36ccabf commit 794bdf8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mammoth/opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,21 @@ def _add_dynamic_vocabs_opts(parser):
"Format: one <word> or <word>\t<count> per line.",
)

group.add(
"-src_vocab_size",
"--src_vocab_size",
type=int,
default=None,
help="Maximum size of the source vocabulary; will silently truncate your vocab file if longer.",
)
group.add(
"-tgt_vocab_size",
"--tgt_vocab_size",
type=int,
default=None,
help="Maximum size of the target vocabulary; will silently truncate your vocab file if longer."
)


def _add_dynamic_transform_opts(parser):
"""Options related to transforms.
Expand Down

0 comments on commit 794bdf8

Please sign in to comment.