hfst-pmatch2fst

Purpose

Compile regular expressions into transducer(s) for use with hfst-pmatch.

Usage

The help message:

Usage: hfst-pmatch2fst [OPTIONS...] [INFILE]
Compile regular expressions into transducer(s)
 (Experimental version)
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
String and format options:
  -e, --epsilon=EPS         Map EPS as zero
      --flatten             Compile in all RTNs

If OUTFILE or INFILE is missing or -, standard streams will be used.
If EPS is not defined, the default representation of 0 is used
Weights are currently not implemented.

Examples:
  echo "Define TOP  UppercaseAlpha Alpha* LC({professor}) EndTag(ProfName);" | hfst-pmatch2fst
  create matcher that tags "professor Chomsky" as "professor <ProfName>Chomsky</ProfName>"

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>

The input

The regular expression formalism is the same as in hfst-xfst with some added pmatch operations.

Examples

See HfstPmatch.