-
Notifications
You must be signed in to change notification settings - Fork 0
/
OT.hs
35 lines (27 loc) · 985 Bytes
/
OT.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module OT
-- This file handles handles example OT Grammar, pair distributions, and the
-- tableaus we'll use for the EDPRL algorithms.
type Constraint = String
-- Optimality Theory Grammar (OTG)
data OTG = OTGWith [Constraint]
-- Pair Distribution
type PairDistribution = [(String, String, Int)]
-- (underlying form, output form, frequency count)
-- Example from Tesar & Smolensky (2000)
TSOTGrammar :: OTG
TSOTGrammar = OTGWith [ "WSP",
"FtNnf",
"Iambi",
"Parse",
"FtBin",
"WFL",
"WFR",
"MainL",
"MainR",
"AFL",
"AFR",
"Nonfn" ]
TSPairDistribution :: PairDistribution
TSPairDistribution = [ ("L-L", "L1-L", 1),
("L-H", "L1-H", 1),
("H-L", "H1-L", 1) ]