NGRAMINFO(1)

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

🌸 NAME 🌸

ngraminfo β€” the manual page for ngraminfo 1.3.17, bestie πŸ’–


✨ DESCRIPTION ✨

Okay so, no cap, what this icon does is print out various information about an LM. That's it. That's the whole gig. She's giving ✨informant✨ and honestly? We love that for her. πŸ’…

Here's how you run her:

Usage: ngraminfo [--options] [in.fst [out.txt]]

So you give her an in.fst, maybe an out.txt, sprinkle in some --options, and she spills the tea about your LM. Obsessed. 🫢


πŸŽ€ PROGRAM FLAGS: πŸŽ€

  • --check_consistency β€” type = bool, default = true. She checks your model's consistency. Like a vibe check, but for your LM, and she will absolutely tell you if something's off. πŸ’€
  • --norm_eps β€” type = double, default = 0.001. The epsilon used for the normalization check. Tiny number, big responsibility, main character energy fr fr. ✨

πŸ“š LIBRARY FLAGS: πŸ“š

🌈 Flags from: flags.cc

  • --help β€” type = bool, default = false. Show usage information. The classic "help meee" button, and yes she will help you. πŸ₯Ί
  • --helpshort β€” type = bool, default = false. Show brief usage information. Same energy, but short and sweet, like a text you send when you're lowkey in a rush. πŸ’Œ
  • --tmpdir β€” type = std::string, default = "/tmp". The temporary directory. Her lil scratch space, her little corner of the filesystem. 🏠
  • --v β€” type = int32_t, default = 0. Verbosity level. Crank it up if you want her to be chatty. She will yap. πŸ—£οΈ

πŸ¦‹ Flags from: fst.cc

  • --fst_align β€” type = bool, default = false. Write FST data aligned where appropriate. Fancy posture for your data, slay. πŸ’…
  • --fst_default_cache_gc β€” type = bool, default = true. Enable garbage collection of cache. Cleaning up after herself, we stan a tidy queen. 🧹
  • --fst_default_cache_gc_limit β€” type = int64_t, default = 1048576. The cache byte size that triggers garbage collection. Hit the limit, and the cleanup starts. Periodt. πŸ”₯
  • --fst_read_mode β€” type = std::string, default = "read". Default file reading mode for mappable files. She's in her reading era. πŸ“–
  • --fst_verify_properties β€” type = bool, default = false. Verify FST properties queried by TestProperties. She double-checks. Trust issues? No, just thorough. πŸ‘‘
  • --save_relabel_ipairs β€” type = std::string, default = "". Save input relabel pairs to file. Empty string means she's not doing it, so speak up if you want it. πŸ“
  • --save_relabel_opairs β€” type = std::string, default = "". Save output relabel pairs to file. Same deal, but the output side. The mirror, the twin, the other half. πŸͺž

⭐ Flags from: symbol-table.cc

  • --fst_compat_symbols β€” type = bool, default = true. Require symbol tables to match when appropriate. Compatibility check, because she's not about that mismatched-symbol chaos. πŸ’œ
  • --fst_field_separator β€” type = std::string, default = " ". Set of characters used as a separator between printed fields. Yes, that default is literally a bunch of spaces. She said "spaces only, no notes." πŸ™ˆ

πŸ’– 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(). So like, by default an error is a whole dramatic exit. Set it otherwise and she'll hand you back objects marked as bad instead. Choose your adventure, bestie. 😭

🌸 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). So it's either nothing or a lil matching set β€” no in-between, she doesn't do half-measures. 🧚
  • --fst_weight_separator β€” type = std::string, default = ",". Character separator between printed composite weights; must be a single character. One character only, she is very strict about this and honestly? Respect. ✨

🌟 Friendly lil heads-up: a bunch of these flags have rules attached (--fst_weight_parentheses has to be size 0 or 2, --fst_weight_separator has to be exactly one character). She's not being difficult, she's just built different. Follow the rules and she'll treat you right. πŸ’…

And that's the whole page, bestie β€” this was ngraminfo 1.3.17, dated February 2022, and she ate. πŸ’–βœ¨πŸŽ€ Stay consistent, keep your epsilons tiny, and go read your FSTs. Byeee! πŸ¦‹πŸŒˆπŸ’œ

πŸ“¦ where this page comes from