NGRAMAPPLY(1)

πŸ“¦
version 1.3.17 Β· 3 versions
, in fedora 44

🌸 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 by TestProperties
  • --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: kError property set, FST weights: not a Member()
  • --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 size 0 (none) or 2 (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