thrax

Compile text grammars into finite state transducers for NLP

brewmacoslinux
Try with needOr install directly
Source

About

Tools for compiling grammars into finite state transducers

Commands

thraxmakedepthraxrewrite-tester

Examples

convert grammar rules into a compiled transducer$ thraxmakedep -i grammar.grm -o compiled.fst
test and validate rewrite rules interactively$ thraxrewrite-tester grammar.fst
compile grammar with dependencies and generate output$ thraxmakedep -i main_grammar.grm -o output.fst input.txt
debug grammar compilation and check for errors$ thraxmakedep -i grammar.grm -v
convert linguistic rules to finite state machines$ thraxmakedep -i linguistic_rules.grm -o transducer.fst