nlp-scores-0.7.0: Scoring functions commonly used for evaluation in NLP and IR

Safe HaskellNone
LanguageHaskell98

NLP.Scores.Internals

Synopsis

Documentation

data Counts a b Source

Count table

Constructors

Counts 

Fields

joint :: !(Map (Pair a b) Count)

Counts of both components

marginalFst :: !(Map a Count)

Counts of the first component

marginalSnd :: !(Map b Count)

Counts of the second component

Instances

(Ord a, Ord b) => Monoid (Counts a b) 

type Count = Double Source

A count

empty :: (Ord a, Ord b) => Counts a b Source

The empty count table

unionPlus :: (Num a, Ord k) => Map k a -> Map k a -> Map k a Source