HFST-PMATCH2FST(1)
π hfst-pmatch2fst β NAME π
okay so bestie, meet hfst-pmatch2fst β that's the star of this page, and the whole manual is filed under HFST-PMATCH2FST(1) in case you need to cite it in your group chat β¨
It compiles regular expressions into transducer(s). That's the vibe. That's the whole job. Periodt π
π SYNOPSIS π
hfst-pmatch2fst [OPTIONS...] [INFILE]
β¨ DESCRIPTION β¨
It compiles regular expressions into transducer(s). Iconic behaviour, no notes π
Heads up: this is the (Experimental version). So like, it's giving "main character energy but still in beta" π§
π Common options:
-h,--helpβ print the help message, the classic "pls explain urself" move π«Ά-V,--versionβ print version info, so you know exactly which era of this software you're dealing with β-v,--verboseβ print verbosely while processing, aka it tells you everything it's doing, and honestly? we love a chatty king π-q,--quietβ only print fatal erros and requested output (yes, "erros" β that's literally what it says in here, typo and all π)-s,--silentβ this one is just an alias of--quiet, same energy, different name π¦
π Input/Output options:
-i,--input=INFILEβ read the input transducer from INFILE π₯-o,--output=OUTFILEβ write the output transducer to OUTFILE π€
πΈ String and format options:
-e,--epsilon=EPSβ map EPS as zero π--flattenβ compile in all RTNs π--cosine-distancesβ when compilingLike()operations, include cosine distance info π
lowkey important deets, bestie: if OUTFILE or INFILE is missing or is -, standard streams will be used. If EPS is not defined, the default representation of 0 is used.
and uhβ¦ Weights are currently not implemented. so don't come for me about weights, they're simply not on the menu π
π₯ EXAMPLES π₯
the moment you've all been waiting for, the demo, the serve:
echo "Define TOP
UppercaseAlpha Alpha* LC({professor}) EndTag(ProfName);" |
hfst-pmatch2fst
This creates a matcher that tags "professor Chomsky" as "professor <ProfName>Chomsky</ProfName>". ate, honestly π
π REPORTING BUGS π
Found a bug? First of all, relatable, second of all, report it! 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>π
π COPYRIGHT π
Copyright Β© 2017 University of Helsinki, License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html> π
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (that's the dramatic part, bestie β NO WARRANTY, all caps, they meant it π)
and that's a wrap, bestie! this little love letter to hfst-pmatch2fst comes to you from the HFST fam, dated August 2018 πΈ go forth and compile ur regular expressions into transducers, ily, mwah πβ¨
π¦ where this page comes from
- debian bookworm: hfst 3.16.0-5 Β· GPL-3.0-or-later
- debian trixie: hfst 3.16.2-1+b1 Β· GPL-3.0-or-later
- nixos 26.05: hfst 3.16.2
- opensuse-leap 16.0: hfst 3.16.0-bp160.1.11 Β· Apache-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND GPL-3.0-only
- ubuntu jammy: hfst 3.15.4-2 Β· GPL-3.0-or-later
- ubuntu noble: hfst 3.16.0-5build4 Β· GPL-3.0-or-later
- ubuntu questing: hfst 3.16.2-1
- ubuntu resolute: hfst 3.16.2-1build2 Β· GPL-3.0-or-later
- ubuntu stonking: hfst 3.17.1-6 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms