hfst-pmatch2fst(1)

hfst-pmatch2fst1

=compile regular expressions into transducer(s)

Usage

hfst-pmatch2fst [OPTIONS ...] [INFILE]

Overview

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

--cosine-distances

When compiling Like() operations, include cosine distance info

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>"

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9
  2. 10–11
  3. 12–13

--cosine-distances since Debian 10 (Buster).

Reporting bugs

Report bugs to <[email protected]> or directly to our bug tracker at: <https://github.com/hfst/hfst/issues>

hfst-pmatch2fst home page: <https://github.com/hfst/hfst/wiki/Pmatch2Fst>
General help using HFST software: <https://github.com/hfst/hfst/wiki>

From hfst 3.16.2-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.