diff options
| author | bringert <unknown> | 2005-09-13 07:20:20 +0000 |
|---|---|---|
| committer | bringert <unknown> | 2005-09-13 07:20:20 +0000 |
| commit | 42d3ccda90e1716b2cbdace29b0b959e3cedb35e (patch) | |
| tree | 79049b596137ffbae8c2617b5ddf0675fec2ce7a /src/GF | |
| parent | b90e16b221000334e0f6d851e5e6407d1b7867ac (diff) | |
Fixed makeTransitions/mapTransitions typo in PrSLF.
Diffstat (limited to 'src/GF')
| -rw-r--r-- | src/GF/Speech/PrSLF.hs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/GF/Speech/PrSLF.hs b/src/GF/Speech/PrSLF.hs index 62c6def34..720e66c56 100644 --- a/src/GF/Speech/PrSLF.hs +++ b/src/GF/Speech/PrSLF.hs @@ -5,9 +5,9 @@ -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date: 2005/09/12 22:32:24 $ +-- > CVS $Date: 2005/09/13 08:20:20 $ -- > CVS $Author: bringert $ --- > CVS $Revision: 1.7 $ +-- > CVS $Revision: 1.8 $ -- -- This module converts a CFG to an SLF finite-state network -- for use with the ATK recognizer. The SLF format is described @@ -18,7 +18,8 @@ -- categories in the grammar ----------------------------------------------------------------------------- -module GF.Speech.PrSLF (slfPrinter,slfGraphvizPrinter,faGraphvizPrinter,regularPrinter) where +module GF.Speech.PrSLF (slfPrinter,slfGraphvizPrinter, + faGraphvizPrinter,regularPrinter) where import GF.Speech.SRG import GF.Speech.TransformCFG @@ -53,12 +54,12 @@ slfPrinter name opts cfg = prSLF (automatonToSLF $ moveLabelsToNodes $ cfgToFA n slfGraphvizPrinter :: Ident -- ^ Grammar name -> Options -> CGrammar -> String slfGraphvizPrinter name opts cfg = - prGraphGraphviz (mapStates (fromMaybe "") $ makeTransitions (const "") $ moveLabelsToNodes $ cfgToFA name opts cfg) + prGraphGraphviz (mapStates (fromMaybe "") $ mapTransitions (const "") $ moveLabelsToNodes $ cfgToFA name opts cfg) faGraphvizPrinter :: Ident -- ^ Grammar name -> Options -> CGrammar -> String faGraphvizPrinter name opts cfg = - prGraphGraphviz (mapStates (const "") $ makeTransitions (fromMaybe "") $ cfgToFA name opts cfg) + prGraphGraphviz (mapStates (const "") $ mapTransitions (fromMaybe "") $ cfgToFA name opts cfg) -- | Convert the grammar to a regular grammar and print it in BNF regularPrinter :: CGrammar -> String |
