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

Safe HaskellNone

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 = DoubleSource

A count

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

The empty count table

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