1NGRAMPRINT(1) User Commands NGRAMPRINT(1)
2
3
4
6 ngramprint - manual page for ngramprint 1.3.14
7
9 Print n-gram counts and models.
10
11 Usage: ngramprint [--options] [in.fst [out.txt]]
12
13 PROGRAM FLAGS:
14
15 --ARPA: type = bool, default = false
16
17 Print in ARPA format --backoff: type = bool, default = false
18 Show epsilon backoff transitions when printing --backoff_inline:
19 type = bool, default = false Show epsilon backoffs transitions
20 inline with context as a third field if --backoff are being
21 printed --backoff_label: type = int64_t, default = 0 Backoff la‐
22 bel --check_consistency: type = bool, default = false Check
23 model consistency --context_pattern: type = std::string, default
24 = "" Pattern of contexts to print --include_all_suffixes: type =
25 bool, default = false Include suffixes of contexts --integers:
26 type = bool, default = false Show just integer counts when
27 printing --negativelogs: type = bool, default = false Show nega‐
28 tive log probs/counts when printing --symbols: type =
29 std::string, default = "" Symbol table file. If not empty,
30 causes it to be loaded from the specified file instead of using
31 the one inside the input FST.
32
33 LIBRARY FLAGS:
34
35 Flags from: flags.cc
36
37 --help: type = bool, default = false
38
39 show usage information --helpshort: type = bool, default = false
40 show brief usage information --tmpdir: type = std::string, de‐
41 fault = "/tmp" temporary directory --v: type = int32_t, default
42 = 0 verbosity level
43
44 Flags from: fst.cc
45
46 --fst_align: type = bool, default = false
47
48 Write FST data aligned where appropriate --fst_default_cache_gc:
49 type = bool, default = true Enable garbage collection of cache
50 --fst_default_cache_gc_limit: type = int64_t, default = 1048576
51 Cache byte size that triggers garbage collection
52 --fst_read_mode: type = std::string, default = "read" Default
53 file reading mode for mappable files --fst_verify_properties:
54 type = bool, default = false Verify FST properties queried by
55 TestProperties --save_relabel_ipairs: type = std::string, de‐
56 fault = "" Save input relabel pairs to file --save_rela‐
57 bel_opairs: type = std::string, default = "" Save output relabel
58 pairs to file
59
60 Flags from: ngram-output.cc
61
62 --end_symbol: type = std::string, default = "</s>"
63
64 Class label for sentence end --start_symbol: type = std::string,
65 default = "<s>" Class label for sentence start
66
67 Flags from: symbol-table.cc
68
69 --fst_compat_symbols: type = bool, default = true
70
71 Require symbol tables to match when appropriate --fst_field_sep‐
72 arator: type = std::string, default = " " Set of charac‐
73 ters used as a separator between printed fields
74
75 Flags from: util.cc
76
77 --fst_error_fatal: type = bool, default = true
78
79 FST errors are fatal; o.w. return objects flagged as bad: e.g.,
80 FSTs: kError property set, FST weights: not a Member()
81 --ngram_error_fatal: type = bool, default = true NGram errors
82 are fatal if true; otherwise returns objects flagged as bad:
83 e.g., NGramModel::Error() is true
84
85 Flags from: weight.cc
86
87 --fst_weight_parentheses: type = std::string, default = ""
88
89 Characters enclosing the first weight of a printed composite
90 weight (e.g., pair weight, tuple weight and derived classes) to
91 ensure proper I/O of nested composite weights; must have size 0
92 (none) or 2 (open and close parenthesis) --fst_weight_separator:
93 type = std::string, default = "," Character separator between
94 printed composite weights; must be a single character
95
96
97
98ngramprint 1.3.14 February 2022 NGRAMPRINT(1)