[libvoikko] hfst-ospell API
Sjur Moshagen
sjurnm at mac.com
Thu Aug 12 13:44:32 EEST 2010
Den 11. aug. 2010 kl. 20.14 skrev Flammie Pirinen:
> 2010-08-11, Sjur Moshagen sanoi:
>
>> Command used:
>>
>> $ cut -f1 ../../../langtech/main/gt/sme/src/typos.txt | grep -v '^#'
>> | grep -v '^$'
>> | | ./hfst-ospell /Users/sjur/hfst-langs/omorfi/src/suggestion/edit-distance-1.hfst ../../../langtech/main/gt/sme/bin/sme.hfst.ol
>>
>> Ie, take a list of (North Sámi) typos, use the correction transducer
>> from omorfi, and run using the regular North Sámi optimised hfst
>> analyser.
>
> Is the edit-distance-1.hfst converted to ol format? It isn't yet in
> omorfi make (On more or less related note i'd reckon hfstol format
> should include HFST3 signature and header to check these.)
That means it was not. I just took the files and used them as is, to see what happens, and if I could get it to work. This points to another possible improvement: check the input data/transducers for correct format, and report back if it is not. That would help a lot in such cases;)
I'll retry the test with the latest updates from Sam, and with a better correction transducer:)
Best regards,
Sjur N. Moshagen
Samediggi · Sametinget
Project Manager for the Divvun project
http://www.divvun.no/
http://www.samediggi.no/
+358-9-49 75 29 (w)
+358-505 634 319 (m)
More information about the Libvoikko
mailing list