From 97956fc13f46d747bd9d1d24b4d00c2f1c673b6c Mon Sep 17 00:00:00 2001 From: bringert Date: Wed, 12 Apr 2006 23:22:35 +0000 Subject: The SLF removeTrivialEmptyNodes optimization could orphan the final node. Fixed this by not bypassing final nodes. --- src/GF/Speech/PrSLF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/GF/Speech/PrSLF.hs') diff --git a/src/GF/Speech/PrSLF.hs b/src/GF/Speech/PrSLF.hs index fbba89692..7f96bba5e 100644 --- a/src/GF/Speech/PrSLF.hs +++ b/src/GF/Speech/PrSLF.hs @@ -58,7 +58,7 @@ mkFAs start cfg = (slfStyleFA main, [(c,slfStyleFA n) | (c,n) <- subs]) where MFA main subs = {- renameSubs $ -} cfgToMFA start cfg slfStyleFA :: Eq a => DFA a -> FA State (Maybe a) () -slfStyleFA = renameStates [0..] . removeTrivialEmptyNodes . oneFinalState Nothing () +slfStyleFA = renameStates [0..] . removeTrivialEmptyNodes . oneFinalState Nothing () . moveLabelsToNodes . dfa2nfa -- | Give sequential names to subnetworks. -- cgit v1.2.3