1NGRAMMERGE(1) User Commands NGRAMMERGE(1)
2
3
4
6 ngrammerge - manual page for ngrammerge 1.3.14
7
9 Merge n-gram models.
10
11 Usage: ngrammerge [--options] -ofile=out.fst in1.fst in2.fst
12 [in3.fst ...]
13
14 PROGRAM FLAGS:
15
16 --alpha: type = double, default = 1
17
18 Weight for first FST --backoff_label: type = int64_t, default =
19 0 Backoff label --beta: type = double, default = 1 Weight for
20 second (and subsequent) FST(s) --check_consistency: type = bool,
21 default = false Check model consistency --complete: type = bool,
22 default = false Complete partial models --context_pattern: type
23 = std::string, default = "" Context pattern for second FST
24 --contexts: type = std::string, default = "" Context patterns
25 file (all FSTs) --max_replace_order: type = int32_t, default =
26 -1 Maximum order to replace in replace_merge, ignored if < 1.
27 --method: type = std::string, default = "count_merge" One of:
28 "context_merge", "count_merge", "model_merge"
29 "bayes_model_merge", "histogram_merge", "replace_merge"
30 --norm_eps: type = double, default = 0.001 Normalization check
31 epsilon --normalize: type = bool, default = false Normalize re‐
32 sulting model --ofile: type = std::string, default = "" Output
33 file --round_to_int: type = bool, default = false Round all
34 merged counts to integers
35
36 LIBRARY FLAGS:
37
38 Flags from: flags.cc
39
40 --help: type = bool, default = false
41
42 show usage information --helpshort: type = bool, default = false
43 show brief usage information --tmpdir: type = std::string, de‐
44 fault = "/tmp" temporary directory --v: type = int32_t, default
45 = 0 verbosity level
46
47 Flags from: fst.cc
48
49 --fst_align: type = bool, default = false
50
51 Write FST data aligned where appropriate --fst_default_cache_gc:
52 type = bool, default = true Enable garbage collection of cache
53 --fst_default_cache_gc_limit: type = int64_t, default = 1048576
54 Cache byte size that triggers garbage collection
55 --fst_read_mode: type = std::string, default = "read" Default
56 file reading mode for mappable files --fst_verify_properties:
57 type = bool, default = false Verify FST properties queried by
58 TestProperties --save_relabel_ipairs: type = std::string, de‐
59 fault = "" Save input relabel pairs to file --save_rela‐
60 bel_opairs: type = std::string, default = "" Save output relabel
61 pairs to file
62
63 Flags from: ngram-output.cc
64
65 --end_symbol: type = std::string, default = "</s>"
66
67 Class label for sentence end --start_symbol: type = std::string,
68 default = "<s>" Class label for sentence start
69
70 Flags from: symbol-table.cc
71
72 --fst_compat_symbols: type = bool, default = true
73
74 Require symbol tables to match when appropriate --fst_field_sep‐
75 arator: type = std::string, default = " " Set of charac‐
76 ters used as a separator between printed fields
77
78 Flags from: util.cc
79
80 --fst_error_fatal: type = bool, default = true
81
82 FST errors are fatal; o.w. return objects flagged as bad: e.g.,
83 FSTs: kError property set, FST weights: not a Member()
84 --ngram_error_fatal: type = bool, default = true NGram errors
85 are fatal if true; otherwise returns objects flagged as bad:
86 e.g., NGramModel::Error() is true
87
88 Flags from: weight.cc
89
90 --fst_weight_parentheses: type = std::string, default = ""
91
92 Characters enclosing the first weight of a printed composite
93 weight (e.g., pair weight, tuple weight and derived classes) to
94 ensure proper I/O of nested composite weights; must have size 0
95 (none) or 2 (open and close parenthesis) --fst_weight_separator:
96 type = std::string, default = "," Character separator between
97 printed composite weights; must be a single character
98
99
100
101ngrammerge 1.3.14 February 2022 NGRAMMERGE(1)