hfst-name

Purpose

Name a transducer or print its name.

Usage

The help message:

Usage: hfst-name [OPTIONS...] [INFILE]
Name a transducer

Name options:
  -n, --name=NAME      Name the transducer NAME
  -p, --print-name     Only print the current name
  -t, --truncate_length=LEN   Truncate name length to LEN
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

If OUTFILE or INFILE is missing or -, standard streams will be used.
Format of result depends on format of INFILE

Report bugs to <hfst-bugs@helsinki.fi> or directly to our bug tracker at:
<https://sourceforge.net/tracker/?atid=1061990&group_id=224521&func=browse>

Examples

The command

echo "cat" | hfst-strings2fst -f foma | hfst-name --name "The cat transducer" | hfst-name --print-name

will print

"The cat transducer"

See also

HfstEditMetadata

--> -- ErikAxelson - 2011-02-02