edit

tools/learn_bpe.lua

learn_bpe.lua options:

  • -h [] (default: false)
    This help.
  • -md [] (default: false)
    Dump help in Markdown format.
  • -config (default: '')
    Load options from this file.
  • -save_config (default: '')
    Save options to this file.

BPE options

  • -size (default: 30000)
    The number of merge operations to learn.
  • -lc [] (default: false)
    Lowercase input tokens before learning BPE.
  • -bpe_mode (accepted: suffix, prefix, both, none; default: suffix)
    Define the BPE mode. prefix: append to the begining of each word to learn prefix-oriented pair statistics; suffix: append to the end of each word to learn suffix-oriented pair statistics, as in the original Python script; both: suffix and prefix; none: no suffix nor prefix.
  • -save_bpe (required)
    Path to save the output model.

Logger options

  • -log_file (default: '')
    Output logs to a file under this path instead of stdout.
  • -disable_logs [] (default: false)
    If set, output nothing.
  • -log_level (accepted: DEBUG, INFO, WARNING, ERROR, NOERROR; default: INFO)
    Output logs at this level and above.