NGRAMINFO(1)
πΈ 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 byTestProperties. 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:kErrorproperty set, FST weights: not aMember(). 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 size0(none) or2(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_parentheseshas to be size0or2,--fst_weight_separatorhas 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
- 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