User:Firespeaker/HFST bug
< User:Firespeaker
Jump to navigation
Jump to search
Revision as of 07:32, 17 January 2013 by Firespeaker (talk | contribs) (Created page with 'In 2011, a bug in how HFST handles words containing spaces was [http://sourceforge.net/p/hfst/bugs/59/ documented and resolved], but it introduced a new bug. This page documents…')
In 2011, a bug in how HFST handles words containing spaces was documented and resolved, but it introduced a new bug. This page documents the new behaviour.
text.lexc
Multichar_Symbols % LEXICON Root erke:erke # ; erke% me:erke% me # ; medvedev:medvedev # ;
Compiling
$ hfst-lexc test.lexc -o test.hfst
$ hfst-invert test.hfst | hfst-fst2fst -w -o test.hfst.ol
Testing
$ echo "erke" | hfst-proc test.hfst.ol
^erke/erke$
$ echo "erke me" | hfst-proc test.hfst.ol
^erke me/erke me$
$ echo "medvedev" | hfst-proc test.hfst.ol
^medvedev/medvedev$
$ echo "erke medvedev" | hfst-proc test.hfst.ol
^erke medvedev/*</a>erke medvedev$