nerf-0.5.4.1: Nerf, a named entity recognition tool based on linear-chain CRFs

Safe HaskellSafe
LanguageHaskell2010

NLP.Nerf.Compare

Description

Compare two NE-annotated datasets.

Synopsis

Documentation

data Stats Source #

Statistics.

Constructors

Stats 

Fields

Instances
Eq Stats Source # 
Instance details

Defined in NLP.Nerf.Compare

Methods

(==) :: Stats -> Stats -> Bool #

(/=) :: Stats -> Stats -> Bool #

Ord Stats Source # 
Instance details

Defined in NLP.Nerf.Compare

Methods

compare :: Stats -> Stats -> Ordering #

(<) :: Stats -> Stats -> Bool #

(<=) :: Stats -> Stats -> Bool #

(>) :: Stats -> Stats -> Bool #

(>=) :: Stats -> Stats -> Bool #

max :: Stats -> Stats -> Stats #

min :: Stats -> Stats -> Stats #

Show Stats Source # 
Instance details

Defined in NLP.Nerf.Compare

Methods

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.