NGRAMRANDTEST(1)
π NAME π
ngramrandtest β manual page for ngramrandtest 1.3.17, living in section 1 (User Commands) of the manual, bestie π
β¨ DESCRIPTION β¨
Okay so this one generates random data/models. That's the whole vibe. It's giving "chaos, but make it structured" π¦
Usage:
ngramrandtest [--options]
π PROGRAM FLAGS π
These are the ones that actually shape what gets generated. Pay attention, this is the main character section π
--directoryβ type =std::string, default =".". The directory where files will be placed. It just wants to know where to put your stuff π--max_lengthβ type =int32_t, default =1000. Maximum sentence length. Cap it, queen.--mean_lengthβ type =int32_t, default =100. Maximum mean string length.--ngram_maxβ type =int32_t, default =3. Maximum n-gram order size.--sample_maxβ type =int32_t, default =10000. Maximum sample corpus size.--seedβ type =int32_t, default =1768688633. Randomization seed. Yes it has a default seed, and yes it's that specific number, no I will not round it, periodt π--thresh_maxβ type =double, default =3. Maximum threshold size.--varsβ type =std::string, default ="". File name for outputting variable values.--vocabulary_maxβ type =int32_t, default =5000. Maximum vocabulary size.
π LIBRARY FLAGS π
These are the borrowed-from-the-library flags, sorted by which file they came from. Not me organising them by source file like a little librarian π§
Flags from: flags.cc
--helpβ type =bool, default =false. Show usage information. Your bestie when you're lost π«Ά--helpshortβ type =bool, default =false. Show brief usage information.--tmpdirβ type =std::string, default ="/tmp". 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. It's cleaning up after itself, we love a self-care icon β¨--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. Goodbye symbol, slay π--start_symbolβ type =std::string, default ="<s>". Class label for sentence start. Hello symbol π
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. (Yes, that default is literally just a run of spaces. It said what it said. π)
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, when this is on, an FST error is over β no recovery arc π--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). So it's0or2characters, no in-between, choose wisely π--fst_weight_separatorβ type =std::string, default =",". Character separator between printed composite weights; must be a single character. One character. Not two. Don't test it.
Heads up bestie:--fst_weight_parentheseshas to be size0or size2, and--fst_weight_separatorhas to be exactly one character. The manpage said it, so I'm saying it π
That's the whole page, and that's on ngramrandtest 1.3.17 β documented back in February 2022, and honestly? Still iconic. Go generate some random data/models, you've got this. Bye bestieee π¦π
π¦ 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