diff options
| author | bringert <bringert@cs.chalmers.se> | 2005-12-02 12:55:24 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2005-12-02 12:55:24 +0000 |
| commit | 6cba6eb0041f5730f311987321ae676a6539a6b8 (patch) | |
| tree | d52cf99f5a63bda8447ecc68704a56f0b3055592 /src | |
| parent | 6b536cf07a18cf730647e7b874c2641cea0ca1be (diff) | |
Make words in SLF language models upper case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/GF/Speech/PrSLF.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GF/Speech/PrSLF.hs b/src/GF/Speech/PrSLF.hs index bd6eba5bb..eba50a7e8 100644 --- a/src/GF/Speech/PrSLF.hs +++ b/src/GF/Speech/PrSLF.hs @@ -74,8 +74,8 @@ prSLF (SLF { slfNodes = ns, slfEdges = es}) showWord :: SLFWord -> String showWord Nothing = "!NULL" -showWord (Just w) = w -- FIXME: convert words to upper case - -- FIXME: could this be the empty string? if so, print as !NULL +showWord (Just w) | null w = "!NULL" + | otherwise = map toUpper w prFields :: [(String,String)] -> ShowS prFields fs = unwordsS [ showString l . showChar '=' . showString v | (l,v) <- fs ] |
