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

Safe HaskellSafe-Infered

NLP.Scores.Internals

Synopsis

Documentation

data Counts a b Source

Count table

Constructors

Counts 

Fields

joint :: !(Map (P 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

data P a b Source

Constructors

P !a !b 

Instances

(Eq a, Eq b) => Eq (P a b) 
(Ord a, Ord b) => Ord (P a b) 

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