Moving tags in HFST

From Apertium
Jump to navigation Jump to search
Multichar_Symbols

+Use/Rare
+N 
+Com
+Nom
+Sg
+Pl 

LEXICON Root

Nouns ; 

LEXICON K

# ;

LEXICON Plur

+Nom: K ; 
+Com:ga K ; 

LEXICON Sing 

+Nom: K ; 
+Com:ga K ; 

LEXICON N 

+N+Pl:te         Plur ; 
+N+Pl+Use/Rare:i Plur ; 
+N+Sg:           Sing ; 

LEXICON Nouns 

aasta:aasta N ;
[  [..] -> "+Use/Rare" || "+Use/Rare" ?* _ .#. .o. "+Use/Rare" -> 0 || _ ?* "+Use/Rare" .#. ];
all:
	hfst-lexc est.lexc -o est.hfst.bin
	hfst-regexp2fst est-restr.hfst -o est-restr.hfst.bin
	hfst-invert est.hfst.bin | hfst-compose-intersect -1 - -2 est-restr.hfst.bin | hfst-fst2strings