Project a transducer towards input or output level.


The help message:

Usage: hfst-project [OPTIONS...] [INFILE]
Project (extract a level) transducer

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
Projection options:
  -p, --project=LEVEL   project extracting tape LEVEL

If OUTFILE or INFILE is missing or -, standard streams will be used.
Format of result depends on format of INFILE
LEVEL must be one of upper, input, first, analysis or lower, output, second, generation

Report bugs to <hfst-bugs@helsinki.fi> or directly to our bug tracker at:


$ echo "cat:chat" | hfst-strings2fst -f foma | hfst-project --project=input | hfst-fst2strings
$ echo "cat:chat" | hfst-strings2fst -f foma | hfst-project --project=output | hfst-fst2strings

-- ErikAxelson - 09 Jul 2008