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

Safe HaskellSafe-Infered

NLP.GenI.OptimalityTheory

Contents

Synopsis

Input

data OtConstraint

Constructors

PositiveC Text

the trace must appear

NegativeC Text

the trace must NOT appear

NegativeConjC [Text]

these traces must not appear AT THE SAME TIME

Output

type GetTraces = Text -> [Text]

type OtResult x = (Int, x, [OtViolation])

rankResults :: GetTraces -> (a -> TagDerivation) -> OtRanking -> [a] -> [OtResult a]

Display