You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert transducer with hfst-fst2txt -f att. Load transducer with kfst, the same string yields results []:
Python 3.11.5 (main, Aug 24 2023, 15:23:30) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from kfst import FST
>>> fst = FST.from_att_file("omorfi.generate.att")
>>>
>>> fst.lookup("[WORD_ID=juosta][UPOS=VERB][VOICE=ACT][MOOD=INDV][TENSE=PRESENT][PERS=SG1]")
<generator object FST.lookup at 0x108a55800>
>>> list(_)
[]
This affects pyomorfi too in that pyomorfi.generate returns an empty list for the same string.
The text was updated successfully, but these errors were encountered:
kfst fails to produce results where hfst does
Version of kfst tested: 3.0.1 (works with 2.0.0)
Steps to reproduce:
Download omorfi tranducers from https://github.com/flammie/omorfi/releases/tag/v0.9.9 (file omorfi-hfst-models-0.9.9.tar.xz). Test omorfi.generate.hfst first with hfst-lookup with the following string
Produces result
juoksen
with weight0,000000
.Convert transducer with
hfst-fst2txt -f att
. Load transducer with kfst, the same string yields results[]
:This affects pyomorfi too in that pyomorfi.generate returns an empty list for the same string.
The text was updated successfully, but these errors were encountered: