hfst icon indicating copy to clipboard operation
hfst copied to clipboard

hfst-fst2strings -r doesn't generate anything for guesser

Open flammie opened this issue 6 years ago • 0 comments

Iäm trying to build a toy guesser:

$❯ cat guesser.lexc 
Multichar_Symbols

+n +a +sg +nom +ine +ela +all

LEXICON Root

abcdefghijklmonpqrstuvxyzåäö # ;
Guess ;

LEXICON Guess

< ?+ > N_LAINEN ;

LEXICON N_LAINEN

lainen:lainen NOUN_SG_NOM ;
lainen:laise NOUN_CASES_SG ;
lainen:lais NOUN_CASES_PL ;

LEXICON NOUN_SG_NOM

+n+sg+nom:0 # ;

LEXICON NOUN_CASES_SG

+n+pl+nom:t # ;
+n+sg+ine:ssa # ;
+n+sg+ela:sta # ;
+n+sg+all:lle # ;

LEXICON NOUN_CASES_PL

+n+pl+ine:issa # ;
+n+pl+ela:ista # ;
+n+pl+all:ille # ;

$❯ hfst-lexc guesser.lexc | hfst-minimise -o guesser.hfst
hfst-lexc: warning: Defaulting to OpenFst tropical type
Root...2 Guess...1 N_LAINEN...3 NOUN_SG_NOM...1 NOUN_CASES_SG...4 NOUN_CASES_PL...
$❯ hfst-fst2fst guesser.hfst -f olw -o guesser.hfstol
$❯ hfst-fst2strings -r 20 guesser.hfst 

doesn't print anything, it probably should though.

flammie avatar Aug 29 '19 12:08 flammie