NGRAMTRANSFER(1)
π NGRAMTRANSFER(1) π
okay bestie, sit down, hydrate, and let me tell you about ngramtransfer β it's a User Commands girly from the OpenGrm squad, version 1.3.17, and she's here to move your n-grams around. β¨
πΈ NAME πΈ
ngramtransfer β the manual page for ngramtransfer 1.3.17, no cap π
π¦ DESCRIPTION π¦
Transfer n-grams between models. That's it, that's the whole vibe. π«Ά
Usage, and yes you have to actually use it like this:
ngramtransfer [--options] --ofile=out.fst in1.fst in2.fst [in3.fst ...]
π PROGRAM FLAGS:
These are her flags, the ones that make the magic happen:
--backoff_labelβ type =int64_t, default =0. Backoff label. iconic.--completeβ type =bool, default =false. Complete partial models. finishing what you started energy fr fr.--context_pattern1β type =std::string, default ="". Context pattern for first model.--context_pattern2β type =std::string, default ="". Context pattern for second model.--contextsβ type =std::string, default ="". Context patterns files (all FSTs).--indexβ type =int32_t, default =-1. Specifies one FST as the destination (source). pick your main character β¨--methodβ type =std::string, default ="count_transfer". One of"count_transfer","histogram_transfer". choose your fighter π--normalizeβ type =bool, default =false. Recompute backoff weights after transfer.--ofileβ type =std::string, default ="". Output file (prefix).--transfer_fromβ type =bool, default =false. Transfer from (to) other FSTS to indexed FST.
π LIBRARY FLAGS:
β Flags from: flags.cc
--helpβ type =bool, default =false. show usage information. the "help me bestie" button.--helpshortβ type =bool, default =false. show brief usage information. the tl;dr version.--tmpdirβ type =std::string, default ="/tmp". temporary directory.--vβ type =int32_t, default =0. verbosity level. turn her up π
π Flags from: fst.cc
--fst_alignβ type =bool, default =false. Write FST data aligned where appropriate.--fst_default_cache_gcβ type =bool, default =true. Enable garbage collection of cache. she cleans up after herself π§Ή--fst_default_cache_gc_limitβ type =int64_t, default =1048576. Cache byte size that triggers garbage collection.--fst_read_modeβ type =std::string, default ="read". Default file reading mode for mappable files.--fst_verify_propertiesβ type =bool, default =false. Verify FST properties queried byTestProperties.--save_relabel_ipairsβ type =std::string, default ="". Save input relabel pairs to file.--save_relabel_opairsβ type =std::string, default ="". Save output relabel pairs to file.
π Flags from: ngram-output.cc
--end_symbolβ type =std::string, default ="</s>". Class label for sentence end.--start_symbolβ type =std::string, default ="<s>". Class label for sentence start. and they were β¨bookendsβ¨
π Flags from: symbol-table.cc
--fst_compat_symbolsβ type =bool, default =true. Require symbol tables to match when appropriate.--fst_field_separatorβ type =std::string, default =" ". Set of characters used as a separator between printed fields.
π§ Flags from: util.cc
--fst_error_fatalβ type =bool, default =true. FST errors are fatal; o.w. return objects flagged as bad: e.g., FSTs:kErrorproperty set, FST weights: not aMember().--ngram_error_fatalβ type =bool, default =true. NGram errors are fatal if true; otherwise returns objects flagged as bad: e.g.,NGramModel::Error()is true.
π
Flags from: weight.cc
--fst_weight_parenthesesβ type =std::string, default ="". Characters enclosing the first weight of a printed composite weight (e.g., pair weight, tuple weight and derived classes) to ensure proper I/O of nested composite weights; must have size0(none) or2(open and close parenthesis).--fst_weight_separatorβ type =std::string, default =",". Character separator between printed composite weights; must be a single character.
ok bestie real talk:--fst_weight_parentheseshas to be size0or size2, and--fst_weight_separatorhas to be exactly one character. no in-between, no exceptions, the algorithm said what it said π
and that's the whole page, you ate that π«Ά this was ngramtransfer 1.3.17 from February 2022 β periodt, go transfer some n-grams bestie πβ¨
π¦ where this page comes from
- fedora 44: opengrm-ngram-tools 1.3.17-2.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms