Menu

#174 hfst-fst2strings segfaults or prints nothing

3.4
open
None
3
2013-04-18
2013-04-17
Anonymous
No

The transducer jokela.min.hfst is minimized and accepts strings:

$ hfst-lookup jokela.hfst
Ala-Jokela
hfst-lookup: warning: It is not possible to perform fast lookups with OpenFST, std arc, tropical semiring format automata.
Converting to HFST basic transducer format and performing slow lookups
Ala-Jokela [WORD_ID=Ala-Jokela][POS=NOUN][SUBCAT=PROPER][KTN=13][NUM=SG][CASE=NOM] 313.000000

Nevertheless hfst-fst2strings doesn't print any strings with option -r and segfaults with option -n

$ hfst-fst2strings -r 1 jokela.min.hfst
$ hfst-fst2strings -n 1 jokela.min.hfst
Segmentation fault

1 Attachments

Discussion

  • Erik Axelson

    Erik Axelson - 2013-04-18

    There seems to be something wrong with processing loops in the transducer. If you want n strings, try to limit the number of cycles to zero:

    hfst-fst2strings -n 1 -c 0 jokela.min.hfst

    Printing random strings seems to be broken, limiting the number of cycles doesn't help.

     
  • Erik Axelson

    Erik Axelson - 2013-04-18
    • assigned_to: Erik Axelson
    • Group: future --> 3.4
    • Priority: 1 --> 3
     
MongoDB Logo MongoDB