NGRAMSPLIT(1)
β¨ NAME β¨
ngramsplit β bestie, this is the manual page for ngramsplit 1.3.17, and it's giving "tiny tool, big job." π
π DESCRIPTION π
okay so here's the whole vibe: ngramsplit splits an n-gram model using context patterns. that's it. that's the mission. iconic behavior honestly. π¦
here's how you call it:
Usage: ngramsplit [--options] in_fst [out_fsts_prefix]
now let's get into the flags, because there are a lot of them and we're going through every single one, no skips, no skimming, we're finishing the whole list like the main characters we are. π
πΈ PROGRAM FLAGS πΈ
--backoff_labelβ type =int64_t, default =0. this is the backoff label. that's the whole description, she's lowkey mysterious. π--completeβ type =bool, default =false. turn this on and it completes partial models.--contextsβ type =std::string, default ="". the context patterns file.--far_typeβ type =std::string, default ="". the type of far to compile β and note the lil parenthetical, bestie: not FAR if empty. one of:"default","stlist","sttable".--methodβ type =std::string, default ="count_split". one of:"count_split","histogram_split".--norm_epsβ type =double, default =0.001. the normalization check epsilon. β¨
π LIBRARY FLAGS π
π Flags from: compile-strings.cc
--far_field_separatorβ type =std::string, default ="+ a literal newline +"(fr fr, the page prints an opening quote, a line break, and a closing quote β that default is a newline character, not a typo). the set of characters used as a separator between printed fields.
π Flags from: flags.cc
--helpβ type =bool, default =false. show usage information.--helpshortβ type =bool, default =false. show brief usage information.--tmpdirβ type =std::string, default ="/tmp". the temporary directory.--vβ type =int32_t, default =0. verbosity level.
π 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.--fst_default_cache_gc_limitβ type =int64_t, default =1048576. the cache byte size that triggers garbage collection.--fst_read_modeβ type =std::string, default ="read". the default file reading mode for mappable files.--fst_verify_propertiesβ type =bool, default =false. verify the 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>". the class label for sentence end.--start_symbolβ type =std::string, default ="<s>". the class label for sentence start.
π 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 =" "(yes bestie, that default is literally just a run of spaces, the page really does print it like that π). the 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; otherwise (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 it returns objects flagged as bad: e.g.,NGramModel::Error()istrue.
β οΈ heads up bestie: those two defaults are true, so by default errors are fatal. flip them off at your own risk, no cap.
π Flags from: weight.cc
--fst_weight_parenthesesβ type =std::string, default ="". the 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; it must have size0(none) or2(open and close parenthesis).--fst_weight_separatorβ type =std::string, default =",". the character separator between printed composite weights; it must be a single character.
that's the whole page, every last flag accounted for, we ate and left no crumbs. π«ΆπΈ
this has been ngramsplit 1.3.17, from February 2022 β stay hydrated, read your man pages, and slay the n-grams. πβ¨π
π¦ 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