NGRAMAPPLY(1)
πΈ NAME πΈ
ngramapply β bestie, this is the manual page for ngramapply, version 1.3.17. That's the whole name section, short and sweet, we move π
β¨ DESCRIPTION β¨
okay so here's the tea: ngramapply intersects an n-gram model with an FST archive. That's the entire mission statement and honestly? she ate. π₯
The usage goes a little something like this:
Usage: ngramapply [--options] ngram.fst [in.far [out.far]]
So you hand her an ngram.fst, and optionally an in.far and an out.far, and she does her lil thing. π«Ά
π PROGRAM FLAGS π
--bo_arc_typeβ type =std::string, default ="phi". Has to be one of:"phi"(that's the default, btw),"epsilon", or"lexicographic". Pick your fighter π
π LIBRARY FLAGS π
π Flags from: compile-strings.cc
--far_field_separatorβ the set of characters used as a separator between printed fields. type =std::string, and the default is, no joke, printed on the page exactly like this:
--far_field_separator: type = std::string, default = "
"
that's a quote, a line break, some spaces, and a closing quote β we report it, we don't question it π
π Flags from: flags.cc
--helpβ type =bool, default =false. Show usage information β¨--helpshortβ type =bool, default =false. Show brief usage information (the tl;dr version, we stan)--tmpdirβ type =std::string, default ="/tmp". Temporary directory π--vβ type =int32_t, default =0. Verbosity level β crank it up if you want the yapping
π¦ 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, iconic)--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 π’
π 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
and that's the whole page, bestie!! π this lil beauty is ngramapply version 1.3.17, dated February 2022 β go forth and intersect your n-grams, ily, mwah π§ββοΈπ
π¦ 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