logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hfst-pmatch2fst - =Compile regular expressions into transducer(s)

Description

       Compile regular expressions into transducer(s)

              (Experimental version)

   Commonoptions:-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 --quietInput/Outputoptions:-i, --input=INFILE
              Read input transducer from INFILE

       -o, --output=OUTFILE
              Write output transducer to OUTFILE

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

Name

       hfst-pmatch2fst - =Compile regular expressions into transducer(s)

Reporting Bugs

       Report    bugs    to    <hfst-bugs@helsinki.fi>    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>

Synopsis

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

See Also