GenI-0.20.1: A natural language generator (specifically, an FB-LTAG surface realiser)Source codeContentsIndex
NLP.GenI.OptimalityTheory
Contents
Input
Output
Display
Synopsis
data OtConstraint
= PositiveC String
| NegativeC String
| NegativeConjC [String]
type OtRanking = [[OtConstraint]]
type GetTraces = String -> [String]
type OtResult x = (Int, x, [OtViolation])
data OtViolation
data RankedOtConstraint = RankedOtConstraint Int OtConstraint
rankResults :: GetTraces -> (a -> Derivation) -> OtRanking -> [a] -> [OtResult a]
otWarnings :: Macros -> OtRanking -> [OtViolation] -> [String]
prettyViolations :: GetTraces -> Bool -> [OtViolation] -> String
prettyRank :: Int -> String
Input
data OtConstraint Source
Constructors
PositiveC Stringthe trace must appear
NegativeC Stringthe trace must NOT appear
NegativeConjC [String]these traces must not appear AT THE SAME TIME
show/hide Instances
type OtRanking = [[OtConstraint]]Source
Output
type GetTraces = String -> [String]Source
type OtResult x = (Int, x, [OtViolation])Source
data OtViolation Source
show/hide Instances
data RankedOtConstraint Source
Constructors
RankedOtConstraint Int OtConstraint
show/hide Instances
rankResults :: GetTraces -> (a -> Derivation) -> OtRanking -> [a] -> [OtResult a]Source
otWarnings :: Macros -> OtRanking -> [OtViolation] -> [String]Source
Display
prettyViolations :: GetTraces -> Bool -> [OtViolation] -> StringSource
prettyRank :: Int -> StringSource
Produced by Haddock version 2.6.0