GenI-0.23.20130212: A natural language generator (specifically, an FB-LTAG surface realiser)

Safe HaskellSafe-Infered

NLP.GenI.Statistics

Synopsis

Documentation

type StatisticsState a = forall m. MonadState Statistics m => m a

initialStatisticsStateFor :: MonadState Statistics m => (m a -> Statistics -> b) -> m a -> b

addMetric :: Metric -> StatisticsState ()

Adds a metric at the beginning of the list (note we reverse the order whene we want to print the metrics)

data Metric

Constructors

IntMetric String Int 

Instances

queryMetrics :: (Metric -> Maybe a) -> Statistics -> [a]