cndict-0.2.0: Chinese/Mandarin <-> English dictionary, Chinese lexer.
Data.Chinese.CCDict
Description
Simplified Chinese - English dictionary with pinyin phonetics.
Synopsis
type CCDict = Map Char CCTrieEntrySource
data Entry Source
Dictionary entry
Constructors
Fields
Instances
load :: FilePath -> IO CCDictSource
Load dictionary from file.
parse :: Text -> CCDictSource
Load dictionary from unicode text.
lookup :: Text -> CCDict -> Maybe EntrySource
O(n). Lookup dictionary entry for a string of simplified chinese.
ccDict :: CCDictSource
Embedded dictionary.
data Token Source
tokenizer :: CCDict -> Text -> [Token]Source
Break a string of simplified chinese down to a list of tokens.