-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings_example.py
112 lines (102 loc) · 3.38 KB
/
settings_example.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
"""
This file contains configuration information that typediff needs to
run, as well as options which can be customized.
"""
# Directory where dat, xml and pickle files are kept.
# You'll want to change this if you don't want to store
# large amounts of data in the installation directory.
DATAPATH = '/home/nejl/data/grammar-data'
# Required for running grammar-utils.py make-data command.
LOGONROOT = None
# URL prefix of other apps Typediff can interface with
FANGORNPATH = None
LTDBPATH = None
# Path to ACE source directory which has been compiiled. Optionally
# used to build the ERG image so that unknown word handling is
# enabled.
ACESRC = None
# Grammars configured for use with typediff. The string '${LOGONROOT}'
# Will be replaced with the value of the LOGONROOT environment
# variable.
GRAMMARLIST = (
{
'alias' : 'erg',
'shortname' : 'ERG 1214',
'longname' : 'The LinGO English Resource Grammar (1214 release)',
'aceconfig' : '${LOGONROOT}/lingo/erg/ace/config.tdl',
'tdlfile' : '${LOGONROOT}/lingo/erg/english.tdl',
'ltdb' : 'ERG_1212',
},
{
'alias' : 'terg',
'shortname' : 'ERG trunk',
'longname' : 'The LinGO English Resource Grammar',
'aceconfig' : '${LOGONROOT}/lingo/terg/ace/config.tdl',
'tdlfile' : '${LOGONROOT}/lingo/terg/english.tdl',
'ltdb' : 'ERG_trunk',
},
{
'alias' : 'jacy',
'shortname' : 'Jacy',
'longname' : 'Jacy Japanese Grammar',
'aceconfig' : '${LOGONROOT}/dfki/jacy/ace/config.tdl',
'tdlfile' : '${LOGONROOT}/dfki/jacy/japanese.tdl',
'ltdb' : 'Jacy_1301'
},
{
'alias' : 'gg',
'shortname' : 'GG',
'longname' : 'GG (German Grammar)',
'aceconfig' : '${LOGONROOT}/dfki/gg/ace/config.tdl',
'tdlfile' : '${LOGONROOT}/dfki/gg/german.tdl',
},
{
'alias' : 'hag',
'shortname' : 'HaG',
'longname' : 'HaG (Hausa Grammar)',
'aceconfig' : '${LOGONROOT}/llf/hag/ace/config.tdl',
'tdlfile' : '${LOGONROOT}/llf/hag/hausa.tdl'
},
)
TREEBANKLIST = (
{
'alias' : 'redwoods1214',
'name' : 'LinGO Redwoods 1214',
'grammars' : ('erg', 'erg-wsj', 'erg-speech', 'terg','terg-wsj', 'terg-speech'),
'version' : 'ERG 1212',
'trees' : 39519,
'json' : 'redwoods_1214.json'
},
{
'alias' : 'redwoods1212',
'name' : 'LinGO Redwoods 1212',
'grammars' : ('erg1212', 'erg1212-wsj', 'erg1212-speech'),
'version' : 'ERG 1212',
'trees' : 39592,
'json' : 'redwoods_1212.json'
},
{
'alias' : 'deepbank1.1',
'name' : 'DeepBank 1.1',
'grammars' : ('erg', 'erg-wsj', 'erg-speech'),
'version' : '1.1',
'trees' : 38730,
'json' : 'deepbank_1_1.json'
},
{
'alias' : 'deepbank1',
'name' : 'DeepBank 1.0',
'grammars' : ('erg1212', 'erg1212-wsj', 'erg1212-speech'),
'version' : '1.0',
'trees' : 38511,
'json' : 'deepbank_1.json'
},
{
'alias' : 'tanaka',
'name' : 'Tanaka Corpus (best 1)',
'grammars' : ('jacy'),
'version' : 'December 2013',
'trees' : 118879,
'json' : 'tanaka.json',
}
)