forked from GitHub/gf-core
Make words in SLF language models upper case.
This commit is contained in:
@@ -74,8 +74,8 @@ prSLF (SLF { slfNodes = ns, slfEdges = es})
|
|||||||
|
|
||||||
showWord :: SLFWord -> String
|
showWord :: SLFWord -> String
|
||||||
showWord Nothing = "!NULL"
|
showWord Nothing = "!NULL"
|
||||||
showWord (Just w) = w -- FIXME: convert words to upper case
|
showWord (Just w) | null w = "!NULL"
|
||||||
-- FIXME: could this be the empty string? if so, print as !NULL
|
| otherwise = map toUpper w
|
||||||
|
|
||||||
prFields :: [(String,String)] -> ShowS
|
prFields :: [(String,String)] -> ShowS
|
||||||
prFields fs = unwordsS [ showString l . showChar '=' . showString v | (l,v) <- fs ]
|
prFields fs = unwordsS [ showString l . showChar '=' . showString v | (l,v) <- fs ]
|
||||||
|
|||||||
Reference in New Issue
Block a user