cndict 0.8.2 → 0.8.3
raw patch · 3 files changed
+3/−5 lines, 3 files
Files
- cndict.cabal +1/−2
- src/Data/Chinese/CCDict.hs +1/−0
- src/Data/Chinese/Segmentation.hs +1/−3
cndict.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: cndict-version: 0.8.2+version: 0.8.3 synopsis: Chinese/Mandarin <-> English dictionary, Chinese lexer. -- description: license: PublicDomain@@ -33,4 +33,3 @@ array hs-source-dirs: src ghc-options: -Wall- ghc-prof-options: -auto-all
src/Data/Chinese/CCDict.hs view
@@ -4,6 +4,7 @@ -- | Simplified Chinese <-> English dictionary with pinyin phonetics. module Data.Chinese.CCDict ( initiate+ , version , Entry(..) , ppEntry , entryVariants
src/Data/Chinese/Segmentation.hs view
@@ -139,9 +139,7 @@ tokenScore :: Token -> Maybe Int tokenScore UnknownWord{} = Nothing-tokenScore (KnownWord e)- -- | T.length (entrySimplified e) == 1 = Nothing- | otherwise = Just $ entryWordFrequency e+tokenScore (KnownWord e) = Just $ entryWordFrequency e --wordCount :: Text -> Int --wordCount txt =