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

Safe HaskellSafe-Inferred

NLP.GenI.Statistics

Synopsis

Documentation

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

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

addMetric :: Metric -> StatisticsState ()Source

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

data Metric Source

Constructors

IntMetric String Int 

Instances