-
Notifications
You must be signed in to change notification settings - Fork 149
/
nerbuild.xml
198 lines (184 loc) · 7.59 KB
/
nerbuild.xml
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<project name="NER" default="compile" basedir=".">
<description>Builds, tests, and runs the project NER.</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="libs" location="lib"/>
<property name="version" value="1.0"/>
<path id="ner.classpath">
<pathelement location="${libs}/activation.jar"/>
<pathelement location="${libs}/anna.jar"/>
<pathelement location="${libs}/antlr-2.7.5.jar"/>
<pathelement location="${libs}/backport-util-concurrent.jar"/>
<pathelement location="${libs}/commons-io-2.4.jar"/>
<pathelement location="${libs}/commons-logging.jar"/>
<pathelement location="${libs}/commons-math3-3.2.jar"/>
<pathelement location="${libs}/com.springsource.javax.persistence-2.0.0.jar"/>
<pathelement location="${libs}/de.tudarmstadt.ukp.wikipedia.api.jar"/>
<pathelement location="${libs}/hibernate-core-4.3.5.Final.jar"/>
<pathelement location="${libs}/Jama-1.0.3.jar"/>
<pathelement location="${libs}/jasypt-1.7.jar"/>
<pathelement location="${libs}/jcommon-1.0.21.jar"/>
<pathelement location="${libs}/jfreechart-1.0.17.jar"/>
<pathelement location="${libs}/jline.jar"/>
<pathelement location="${libs}/jquantlib-0.2.4.jar"/>
<pathelement location="${libs}/jsafran.jar"/>
<pathelement location="${libs}/JTrans.jar"/>
<pathelement location="${libs}/log4j.jar"/>
<pathelement location="${libs}/mallet-deps.jar"/>
<pathelement location="${libs}/mallet.jar"/>
<pathelement location="${libs}/mysql-connector-java-5.1.6.jar"/>
<pathelement location="${libs}/org.annolab.tt4j-1.0.12.jar"/>
<pathelement location="${libs}/slf4j-api-1.6.2.jar"/>
<pathelement location="${libs}/slf4j-log4j12-1.6.2.jar"/>
<pathelement location="${libs}/StanfordNER.jar"/>
<pathelement location="${libs}/StanfordClassifier.jar"/>
<pathelement location="${libs}/trove.jar"/>
<pathelement location="${libs}/activation.jar"/>
<pathelement location="${libs}/anna.jar"/>
<pathelement location="${libs}/antlr-2.7.5.jar"/>
<pathelement location="${libs}/backport-util-concurrent.jar"/>
<pathelement location="${libs}/commons-io-2.4.jar"/>
<pathelement location="${libs}/commons-logging.jar"/>
<pathelement location="${libs}/commons-math3-3.2.jar"/>
<pathelement location="${libs}/com.springsource.javax.persistence-2.0.0.jar"/>
<pathelement location="${libs}/de.tudarmstadt.ukp.wikipedia.api.jar"/>
<pathelement location="${libs}/hibernate-core-4.3.5.Final.jar"/>
<pathelement location="${libs}/Jama-1.0.3.jar"/>
<pathelement location="${libs}/jasypt-1.7.jar"/>
<pathelement location="${libs}/jcommon-1.0.21.jar"/>
<pathelement location="${libs}/jfreechart-1.0.17.jar"/>
<pathelement location="${libs}/jline.jar"/>
<pathelement location="${libs}/jquantlib-0.2.4.jar"/>
<pathelement location="${libs}/jsafran.jar"/>
<pathelement location="${libs}/JTrans.jar"/>
<pathelement location="${libs}/log4j.jar"/>
<pathelement location="${libs}/mallet-deps.jar"/>
<pathelement location="${libs}/mallet.jar"/>
<pathelement location="${libs}/mysql-connector-java-5.1.6.jar"/>
<pathelement location="${libs}/org.annolab.tt4j-1.0.12.jar"/>
<pathelement location="${libs}/slf4j-api-1.6.2.jar"/>
<pathelement location="${libs}/slf4j-log4j12-1.6.2.jar"/>
<pathelement location="${libs}/trove.jar"/>
<pathelement location="${libs}/opennlp-tools-1.5.3.jar"/>
<pathelement location="${libs}/opennlp-maxent-3.0.3.jar"/>
</path>
<path id="run.classpath">
<path refid="ner.classpath"/>
<pathelement path="${build}"/>
</path>
<target name="init">
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
<mkdir dir="etc"/>
<mkdir dir="reports"/>
<copy todir="etc">
<fileset dir="templates" includes="**/*"/>
</copy>
</target>
<target name="compile" depends="init" description="compile the source " >
<echo message="JVM - ${ant.java.version}" />
<javac debug="true" srcdir="${src}" destdir="${build}" encoding="UTF-8">
<classpath refid="ner.classpath" />
</javac>
</target>
<target name="jar" depends="compile" description="generate the distribution" >
<manifest file="MANIFEST.MF">
<attribute name="Class-Path" value="lib/jsafran.jar lib/StanfordNER.jar"/>
<attribute name="Main-Class" value="conll03.CoNLL03Ner"/>
</manifest>
<jar destfile="ner.jar" basedir="bin" manifest="MANIFEST.MF"/>
</target>
<target name="run" depends="compile" description="run" >
<java classname="conll03.CoNLL03Ner"
fork="true"
failonerror="true"
maxmemory="7g">
<arg value="basecrf"/>
<classpath refid="run.classpath" />
</java>
</target>
<target name="testauto" depends="compile" description="unit tests that are designed to be fast and throw an exception if something is broken" >
<java classname="test.AutoTests"
fork="true"
failonerror="true"
maxmemory="1g">
<arg value="500m"/>
<classpath refid="run.classpath" />
</java>
</target>
<target name="dettest" depends="compile" description="xtof manual tests" >
<java classname="xtof.tests.ConllXP"
fork="true"
failonerror="true"
maxmemory="13g">
<arg value="500m"/>
<classpath refid="run.classpath" />
</java>
</target>
<target name="ester" depends="compile" description="lina running experiments" >
<java classname="CRFClassifier.AnalyzeCRFClassifier"
fork="true"
failonerror="true"
maxmemory="20g">
<!--arg value="esterMClass"/-->
<!--arg value="esterPN"/-->
<!--arg value="esterTKPN"/-->
<!--arg value="esterWsupPN"/-->
<arg value="esterWsupTKPN"/>
<classpath refid="run.classpath" />
</java>
</target>
<target name="conll" depends="compile" description="lina running experiments" >
<java classname="conll03.CoNLL03Ner"
fork="true"
failonerror="true"
maxmemory="7g">
<!--arg value="lc"/-->
<!--arg value="basecrf"/-->
<!--arg value="crftk"/-->
<arg value="expGWord"/>
<classpath refid="run.classpath" />
</java>
</target>
<target name="detsav" depends="compile" description="xtof manual tests" >
<java classname="xtof.tests.TestGigaword"
fork="true"
failonerror="true"
maxmemory="1g">
<arg value="500m"/>
<classpath refid="run.classpath" />
</java>
</target>
<target name="clean" description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<property name="testweights.gold" value="w"/>
<property name="testweights.arg1" value="500"/>
<target name="testWeights" description="evaluate the combination of weights of train and test features">
<java classname="test.TestingConllExperiments" failonerror="true" fork="yes">
<classpath refid="ner.classpath"/>
<arg value="${testweights.gold}"/>
<arg value="${testweights.arg1}"/>
</java>
</target>
<target name="test" depends="compile">
<junit fork="yes" haltonfailure="yes" printsummary="withOutAndErr">
<batchtest fork="yes" todir="reports" >
<fileset dir="${build}">
<include name="**/*Test.class" />
</fileset>
</batchtest>
<formatter type="xml" />
<classpath refid="run.classpath" />
</junit>
<junitreport todir="reports">
<fileset dir="reports">
<include name="TEST-*.xml" />
</fileset>
<report todir="reports" />
</junitreport>
</target>
</project>