-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTextpressoSystemGlobals.pm
More file actions
executable file
·128 lines (103 loc) · 4.08 KB
/
TextpressoSystemGlobals.pm
File metadata and controls
executable file
·128 lines (103 loc) · 4.08 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
package TextpressoSystemGlobals;
# Package provides global constants for all
# build related matters of Textpresso.
#
# (c) 2005-8 Hans-Michael Muller, Caltech, Pasadena.
use strict;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(SY_ROOT SY_SUBROOTS SY_ANNOTATION_TYPE SY_ANNOTATION_SUBTYPE SY_ANNOTATION_SUBTYPE_INSTANCES SY_ANNOTATION_FIELDS SY_PASSTHROUGH_FIELDS SY_SOURCE_FIELDS SY_BIB_NAME SY_BIB_FIELDS SY_BIB_SEPARATOR SY_INDEX_TYPE SY_INDEX_SUBTYPE SY_INDEX_SUBTYPE_INSTANCES SY_INDEX_FIELDS SY_ONTOLOGY SY_SUPPLEMENTALS SY_MAX_NGRAM_SIZE SY_PREPROCESSING_TAGS SY_MARKUP_EXCEPTIONS);
use constant SY_ROOT => '/usr/local/textpresso/celegans/Data/';
use constant SY_SUBROOTS => { annotations => 'annotations/',
includes => 'includes/',
excludes => 'excludes/',
indices => 'indices/',
ontology => 'ontology/',
supplementals => 'supplementals/',
processedfiles => 'processedfiles/',
etc => 'etc/'};
use constant SY_ANNOTATION_FIELDS => { abstract => 'abstract/',
body => 'body/',
title => 'title/',
introduction => 'introduction/',
materials => 'materials/',
results => 'results/',
discussion => 'discussion/',
conclusion => 'conclusion/',
acknowledgments => 'acknowledgments/',
references => 'references/'
};
use constant SY_ANNOTATION_TYPE => { grammatical => 'grammatical/',
semantic => 'semantic/'};
use constant SY_ANNOTATION_SUBTYPE_INSTANCES => 'semantic';
use constant SY_ANNOTATION_SUBTYPE => { categories => 'categories/',
attributes => 'attributes/'};
use constant SY_PASSTHROUGH_FIELDS => { author => 'author/',
accession => 'accession/',
citation => 'citation/',
journal => 'journal/',
type => 'type/',
year => 'year/'};
use constant SY_BIB_NAME => 'bib-all/';
use constant SY_BIB_FIELDS => { abstract => 'abstract/',
author => 'author/',
accession => 'accession/',
citation => 'citation/',
journal => 'journal/',
title => 'title/',
type => 'type/',
year => 'year/'};
use constant SY_BIB_SEPARATOR => '_#';
use constant SY_SOURCE_FIELDS => { abstract => 'abstract/',
author => 'author/',
accession => 'accession/',
body => 'body/',
citation => 'citation/',
journal => 'journal/',
title => 'title/',
type => 'type/',
year => 'year/',
introduction => 'introduction/',
materials => 'materials/',
results => 'results/',
discussion => 'discussion/',
conclusion => 'conclusion/',
acknowledgments => 'acknowledgments/',
references => 'references/' };
use constant SY_INDEX_FIELDS => { abstract => 'abstract/',
author => 'author/',
accession => 'accession/',
body => 'body/',
journal => 'journal/',
title => 'title/',
type => 'type/',
year => 'year/',
introduction => 'introduction/',
materials => 'materials/',
results => 'results/',
discussion => 'discussion/',
conclusion => 'conclusion/',
acknowledgments => 'acknowledgments/',
references => 'references/'
};
use constant SY_INDEX_TYPE => { grammatical => 'grammatical/',
semantic => 'semantic/',
keyword => 'keyword/'};
use constant SY_INDEX_SUBTYPE_INSTANCES => 'semantic';
use constant SY_INDEX_SUBTYPE => { categories => 'categories/',
attributes => 'attributes/'};
use constant SY_ONTOLOGY => { definitions => 'definitions/',
compact_lexica => 'compact_lexica',
lexica => 'lexica/'};
use constant SY_SUPPLEMENTALS => { endnote => 'endnote/',
keyword => 'keyword/',
onlinetext => 'onlinetext/',
relatedarticle => 'relatedarticle/',
svm => 'svm/',
synonyms => 'synonyms/'};
use constant SY_SUPPLEMENTALS_DOCS => 'endnote onlinetext relatedarticle';
use constant SY_SUPPLEMENTALS_CONT => 'keyword';
use constant SY_PREPROCESSING_TAGS => ['WSD', 'HTML_ITALICS'];
use constant SY_MARKUP_EXCEPTIONS => ['gene_dmelanogaster'];
use constant SY_MAX_NGRAM_SIZE => 15;
1;