chatter 0.8.0.0 → 0.8.0.1
raw patch · 3 files changed
+14/−3 lines, 3 files
Files
- changelog.md +10/−0
- chatter.cabal +1/−1
- src/NLP/ML/AvgPerceptron.hs +3/−2
changelog.md view
@@ -1,3 +1,11 @@+= HEAD =++= 0.8.0.1 =++ - Added deriving clauses for Class and Feature to support GHC 7.10;+ based on Rick Dzekman's pull request. Adds an explicit NFData+ instance for Perceptron.+ = 0.8.0.0 = - Added a Document type to better store term count indexes@@ -7,6 +15,8 @@ reason for the B-level version bump. (also done for performance) - A number of non-breaking performance improvements (e.g., not using foldl in a few places.)++ - These changes, and much of 0.7.0.0 are due to work by Tristan Ravitch & Jonathan Daugherty. = 0.7.0.0 = - B-level version bump because we added test dependency on
chatter.cabal view
@@ -1,5 +1,5 @@ name: chatter-version: 0.8.0.0+version: 0.8.0.1 synopsis: A library of simple NLP algorithms. description: chatter is a collection of simple Natural Language Processing algorithms.
src/NLP/ML/AvgPerceptron.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-} -- | Average Perceptron implementation of Part of speech tagging, -- adapted for Haskell from this python implementation, which is described on the blog post: --@@ -34,7 +35,7 @@ import NLP.Types () newtype Feature = Feat Text- deriving (Read, Show, Eq, Ord, Generic)+ deriving (Read, Show, Eq, Ord, Generic, NFData) instance Serialize Feature @@ -45,7 +46,7 @@ -- can be defined by the users of the Perceptron (such as custom POS -- tag ADTs, or more complex classes). newtype Class = Class String- deriving (Read, Show, Eq, Ord, Generic)+ deriving (Read, Show, Eq, Ord, Generic, NFData) instance Serialize Class