cndict-0.8.5: Chinese/Mandarin <-> English dictionary, Chinese lexer.

Safe HaskellNone
LanguageHaskell98

Data.Chinese.Segmentation

Synopsis

Documentation

data Entry Source #

Dictionary entry data Entry = Entry { entrySimplified :: !Text , entryTraditional :: !Text , entryPinyin :: [Text] , entryDefinition :: [[Text]] } deriving ( Read, Show, Eq, Ord )

Constructors

Entry !Text Variant [Variant] 

tokenizer :: Text -> [Token] Source #

Break a string of simplified chinese down to a list of tokens.