pdtreplace - Man Page

manual page for pdtreplace 1.8.3

Description

Converts an RTN represented by FSTs and non-terminal labels into PDT.

Usage: pdtreplace root.fst rootlabel [rule1.fst label1 ...] [out.fst]

PROGRAM FLAGS:

--left_paren_prefix: type = std::string, default = "(_"

Prefix to attach to SymbolTable labels for inserted left parentheses --pdt_parentheses: type = std::string, default = "" PDT parenthesis label pairs --pdt_parser_type: type = std::string, default = "left" Construction method, one of: "left", "left_sr" --right_paren_prefix: type = std::string, default = ")_" Prefix to attach to SymbolTable labels for inserted right parentheses --start_paren_labels: type = int64_t, default = -1 Index to use for the first inserted parentheses; if not specified, the next available label beyond the highest output label is used

LIBRARY FLAGS:

Flags from: flags.cc

--help: type = bool, default = false

show usage information --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 --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 by TestProperties --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: 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

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()

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) --fst_weight_separator: type = std::string, default = "," Character separator between printed composite weights; must be a single character

Info

July 2018 pdtreplace 1.8.3