Man page - hfst-substitute(1)
Packages contains this manual
- hfst-push-weights(1)
- hfst-subtract(1)
- hfst-pmatch(1)
- hfst-project(1)
- hfst-tokenize(1)
- hfst-concatenate(1)
- hfst-reweight(1)
- hfst-summarise(1)
- hfst-twolc(1)
- hfst-affix-guessify(1)
- hfst-txt2fst(1)
- hfst-lexc(1)
- hfst-disjunct(1)
- hfst-guess(1)
- hfst-xfst(1)
- hfst-determinize(1)
- hfst-minus(1)
- hfst-lookup(1)
- hfst-minimize(1)
- hfst-summarize(1)
- hfst-compose-intersect(1)
- hfst-minimise(1)
- hfst-remove-epsilons(1)
- hfst-proc2(1)
- hfst-optimized-lookup(1)
- hfst-invert(1)
- hfst-reverse(1)
- hfst-apertium-proc(1)
- hfst-union(1)
- hfst-proc(1)
- hfst-grep(1)
- hfst-split(1)
- hfst-intersect(1)
- hfst-edit-metadata(1)
- hfst-tail(1)
- hfst-format(1)
- hfst-multiply(1)
- hfst-expand-equivalences(1)
- hfst-determinise(1)
- hfst-prune-alphabet(1)
- hfst-substitute(1)
- hfst-tag(1)
- hfst-repeat(1)
- hfst-shuffle(1)
- hfst-sfstpl2fst(1)
- hfst-fst2fst(1)
- hfst-regexp2fst(1)
- hfst-conjunct(1)
- hfst-compose(1)
- hfst-guessify(1)
- hfst-fst2txt(1)
- hfst-pmatch2fst(1)
- hfst-expand(1)
- hfst-fst2strings(1)
- hfst-pair-test(1)
- hfst-calculate(1)
- hfst-head(1)
- hfst-strings2fst(1)
- hfst-name(1)
- hfst-traverse(1)
- hfst-reweight-tagger(1)
- hfst-optimised-lookup(1)
- hfst-tokenise(1)
- hfst-compare(1)
- hfst-info(1)
apt-get install hfst
Manual
HFST-SUBSTITUTE
NAMESYNOPSIS
DESCRIPTION
Common options:
Input/Output options:
Relabeling options:
Input options:
Transient optimisation schemes:
EXAMPLES
REPORTING BUGS
COPYRIGHT
NAME
hfst-substitute - =Relabel transducer arcs
SYNOPSIS
hfst-substitute [ OPTIONS ...] [ INFILE ]
DESCRIPTION
Relabel transducer arcs
Common options:
-h , --help
Print help message
-V , --version
Print version info
-v , --verbose
Print verbosely while processing
-q , --quiet
Only print fatal erros and requested output
-s , --silent
Alias of --quiet
Input/Output options:
-i , --input = INFILE
Read input transducer from INFILE
-o , --output = OUTFILE
Write output transducer to OUTFILE
Relabeling options:
-f , --from-label = FLABEL
replace FLABEL
-t , --to-label = TLABEL
replace with TLABEL
-T , --to-transducer = TFILE
replace with transducer read from TFILE
-F , --from-file = LABELFILE
read replacements from LABELFILE
-R , --in-order
keep the order of the replacements (with -F )
Input options:
-C , --do-not-convert
require that transducers in TFILE and INFILE have the same type
Transient optimisation schemes:
-9 , --compose
compose substitutions when possible
If OUTFILE or INFILE is missing or -, standard streams will be used. Format of result depends on format of INFILE LABEL must be a symbol name in single arc in transducer, or colon separated pair defining an arc. If TFILE is specified, FLABEL must be a pair. LABELFILE is a 2 column tsv file where col 1 is FLABEL and col 2 gives TLABEL specifications.
EXAMPLES
hfst-substitute -i tr.hfst -o tr_relabeled.hfst -f ’a’ -t ’A’
relabel all symbols ’a’ with ’A’
hfst-substitute -i tr.hfst -o tr_relabeled.hfst -f ’a:b’ -t ’A:B’
relabel all arcs ’a:b’ with ’A:B’
hfst-substitute -i tr.hfst -o tr_relabeled.hfst -f ’a:b’ -T repl.hfst
replace all arcs ’a:b’ with transducer repl.hfst
REPORTING BUGS
Report bugs to <hfst-bugs@helsinki.fi> or directly to our bug tracker at: <https://github.com/hfst/hfst/issues>
hfst-substitute
home page:
<https://github.com/hfst/hfst/wiki/HfstSubstitute>
General help using HFST software:
<https://github.com/hfst/hfst/wiki>
COPYRIGHT
Copyright ©
2017 University of Helsinki, License GPLv3: GNU GPL version
3 <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and
redistribute it. There is NO WARRANTY, to the extent
permitted by law.