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

Safe HaskellSafe
LanguageHaskell2010

NLP.GenI.Statistics

Synopsis

Documentation

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

initialStatisticsStateFor :: (m a -> Statistics -> b) -> m a -> b Source #

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