nerf-0.5.3: Nerf, the named entity recognition tool based on linear-chain CRFs

Safe HaskellSafe-Inferred
LanguageHaskell98

NLP.Nerf.Compare

Description

Compare two NE-annotated datasets.

Synopsis

Documentation

data Stats Source

Statistics.

Constructors

Stats 

Fields

fp :: !Int

false positive

tp :: !Int

true positive

fn :: !Int

false negative

tn :: !Int

true negative

Instances

(.+.) :: 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.