GenI-0.20.1: A natural language generator (specifically, an FB-LTAG surface realiser)
Source code
Contents
Index
NLP.GenI.Statistics
Synopsis
data
Statistics
type
StatisticsState
a =
forall
m.
MonadState
Statistics
m => m a
emptyStats
::
Statistics
showFinalStats
::
Statistics
->
String
initialStatisticsStateFor
::
MonadState
Statistics
m => (m a ->
Statistics
-> b) -> m a -> b
addMetric
::
Metric
->
StatisticsState
()
data
Metric
=
IntMetric
String
Int
queryMetrics
:: (
Metric
->
Maybe
a) ->
Statistics
-> [a]
updateMetrics
:: (
Metric
->
Metric
) ->
Statistics
->
Statistics
incrIntMetric
::
String
->
Int
->
Metric
->
Metric
queryIntMetric
::
String
->
Metric
->
Maybe
Int
Documentation
data
Statistics
Source
Instances
JSON
Statistics
type
StatisticsState
a =
forall
m.
MonadState
Statistics
m => m a
Source
emptyStats
::
Statistics
Source
showFinalStats
::
Statistics
->
String
Source
initialStatisticsStateFor
::
MonadState
Statistics
m => (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
Show
Metric
queryMetrics
:: (
Metric
->
Maybe
a) ->
Statistics
-> [a]
Source
updateMetrics
:: (
Metric
->
Metric
) ->
Statistics
->
Statistics
Source
incrIntMetric
::
String
->
Int
->
Metric
->
Metric
Source
queryIntMetric
::
String
->
Metric
->
Maybe
Int
Source
Produced by
Haddock
version 2.6.0