rxn.onmt_utils.train_command.Arg
- class rxn.onmt_utils.train_command.Arg(key, default, needed_for)[source]
Bases:
objectRepresents an argument to be given for the onmt_train command.
- key
argument name (i.e. what is forwarded to onmt_train, without the dash).
- default
default value that we use for that argument in the RXN universe. None indicates that this argument must be provided explicitly, an empty string is used for boolean args not requiring a value.
- needed_for
what commands this argument is needed for (train, finetune, etc.)
- Parameters
key (
str) –default (
Any) –needed_for (
RxnCommand) –
- __init__(key, default, needed_for)[source]
- Parameters
key (
str) –default (
Any) –needed_for (
RxnCommand) –
Methods
__init__(key, default, needed_for)- param key