thrax

Compile grammars into finite state transducers for NLP tasks

brewmacoslinux
Try with needOr install directly
Source

About

Tools for compiling grammars into finite state transducers

Commands

thraxmakedepthraxrewrite-tester

Examples

Compile a Thrax grammar file into a finite state archive$ thraxmakedep -i grammar.grm -o grammar.far
Test rewrite rules from a compiled grammar interactively$ thraxrewrite-tester --far=grammar.far --rules=rule_name
Generate FST from grammar and apply transformation to text$ echo 'input text' | fstcompose - grammar.fst | fstshortestpath | fstproject --project_output | fsttool print