nerf-0.5.4.1: Nerf, a named entity recognition tool based on linear-chain CRFs
NLP.Nerf.Compare
Description
Compare two NE-annotated datasets.
data Stats Source #
Statistics.
Constructors
Fields
false positive
true positive
false negative
true negative
Defined in NLP.Nerf.Compare
Methods
(==) :: Stats -> Stats -> Bool #
(/=) :: Stats -> Stats -> Bool #
compare :: Stats -> Stats -> Ordering #
(<) :: Stats -> Stats -> Bool #
(<=) :: Stats -> Stats -> Bool #
(>) :: Stats -> Stats -> Bool #
(>=) :: Stats -> Stats -> Bool #
max :: Stats -> Stats -> Stats #
min :: Stats -> Stats -> Stats #
showsPrec :: Int -> Stats -> ShowS #
show :: Stats -> String #
showList :: [Stats] -> ShowS #
(.+.) :: Stats -> Stats -> Stats Source #
Add stats.
compare :: Ord a => [(NeForest a Text, NeForest a Text)] -> Map a Stats Source #
Compare two NE-annotated datasets. The function assumes, that forest pairs correspond to the same sentences.