[libvoikko] Strange bug in the interface between hfst-ospell and libvoikko
Sjur Moshagen
sjurnm at mac.com
Thu Dec 12 08:58:57 EET 2013
Here’s one possible clue as to the source of the bug:
$ voikkospell -l -p tools/spellcheckers/fstbased/hfst/
sms-x-standard: Giellatekno/Divvun/UiT fst-based speller for Skolt Sami
r$ voikkospell -L -p tools/spellcheckers/fstbased/hfst/
spell:sms
terminate called after throwing an instance of 'hfst_ol::ZHfstMetaDataParsingError'
Abort trap
That is, the one speller that works fine (sms/Skolt Sámi on MacOSX 10.6) still crashes when voikkospell is invoked with the new option -L, but only *after* it has listed the available features of sms.
And just to document what I said earlier - regular spelling works fine:
$ voikkospell -s -p tools/spellcheckers/fstbased/hfst/ -d sms
jih
W: jih
S: ai
S: iin
S: ja
S: sij
S: ǩii
^C
Sjur
12. des. 2013 kl. 01:57 skrev Sjur Moshagen <sjurnm at mac.com>:
> Hello,
>
> The following bug has me puzzled:
>
> $ voikkospell -l -p tools/spellcheckers/fstbased/hfst/
> libc++abi.dylib: terminating with uncaught exception of type hfst_ol::ZHfstMetaDataParsingError
> Abort trap: 6
>
> When reading the same file using hfst-ospell in verbose mode (to force it to read, parse and print the metadata), there are no problems:
>
> $ hfst-ospell -v tools/spellcheckers/fstbased/hfst/smn.zhfst
> Following metadata was read from ZHFST archive:
> locale: smn
> version: GT_VERSION [vcsrev: GT_REVISION]
> date: DATE
> producer: giellatekno/Divvun/UiT contributors[email: <feedback at divvun.no>, website: <http://divvun.no>]
> title [smn]: Giellatekno/Divvun/UiT fst-based speller for Inari Sami
> description [smn]: This is an fst-based speller for Inari Sami. It is based
> on the normative subset of the morphological analyser for Inari Sami.
> The source code can be found at:
> https://victorio.uit.no/langtech/trunk/langs/smn/
> License: GPL3+.
>
> acceptor[default.] [id: acceptor.default.hfst, type: generaltrtype: ]
> title [smn]: Giellatekno/Divvun/UiT dictionary Inari Sami
> description[smn]:
> Giellatekno/Divvun/UiT dictionary for Inari Sami compiled for HFST.
>
> errmodel[default.] [id: errmodel.default.hfst]
> title [smn]: Levenshtein edit distance transducer
> description[smn]:
> Correction model for keyboard misstrokes, at most 2 per word.
>
> type: default
> model: errormodel.default.hfst
>
> jilla
> Corrections for "jilla":
> millo 2
>
> ^C
>
> Configuration:
> * svn HEAD of hfst-ospell
> * newest revision of the master branch of libvoikko (e858bd9dac3625d1eb6298f050ee6081bbbbf2e1)
> * MacOSX 10.9 (but similar behavior is seen on MacOSX 10.6 as well)
> * svn HEAD of $GTHOME/langs
>
> Languages tested:
> * fao
> * smn
> * sms (ok on 10.6)
> * sma
>
> Sjur
>
> _______________________________________________
> Libvoikko mailing list
> Libvoikko at lists.puimula.org
> http://lists.puimula.org/listinfo/libvoikko
More information about the Libvoikko
mailing list