hfst-weighted2unweighted
Purpose
Transform a weighted transducer to an unweighted one.
Usage
hfst-weighted2unweighted [OPTIONS...] [INFILE]
Parameters
Parameters common for all commandline programs.
-h , --help |
Print help message |
-V , --version |
Print version info |
-v , --verbose |
Print verbosely while processing |
-q , --quiet |
Do not print output |
-s , --silent |
Alias of --quiet |
Parameters common for all commandline programs taking one input stream and writing transducers or text as output.
-i , --input=FILENAME |
Read input from FILENAME |
-o , --output=FILENAME |
Write output to FILENAME |
Details
The input is read one transducer at a time. Each input transducer is transformed to a transducer in text format. The transducer in text format is transformed again to an unweighted binary transducer. This transducer is written to
output
.
The input
The input may either come from a file or
STDIN
(depending on, if the parameter
input
is used or not). In both cases the input consists of weighted transducers.
The output
The output may either be written to a file or
STDOUT
(depending on, if the parameter
output
is used or not). In both cases the output consists of unweighted transducers written one after another.
Installing
The program is distributed with a Makefile. Calling
make install
will create all HFST command line tools, including
hfst-weighted2unweighted
.
Obtaining the program
The program may be obtained from the CVS-repository on the server
corpus.csc.fi
.
--
ErikAxelson - 10 Jul 2008