-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
executable file
·107 lines (94 loc) · 3.69 KB
/
build.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
<?xml version="1.0"?>
<project name="JointMultiGramModel" default="dist" basedir=".">
<property name="src" value="./src"/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<property name="neodir" value="lib/neo"/>
<property name="libdir" value="lib"/>
<path id="java.class.path">
<fileset dir="${neodir}">
<include name="*.jar"/>
</fileset>
<pathelement path="lib/liblinear-1.91.jar"/>
<pathelement path="lib/jnisvmlight.jar"/>
<pathelement path="lib/libsvm.jar"/>
<pathelement path="lib/jgrapht-jdk1.6.jar"/>
<pathelement path="lib/stanford/stanford-ner-2012-07-09.jar"/>
<pathelement path="lib/weka.jar"/>
<pathelement path="lib/commons-cli-1.2.jar"/>
<pathelement path="lib/mysql-connector-java-3.0.17-ga-bin.jar"/>
<pathelement path="lib/commons-logging-1.1.1.jar"/>
<pathelement path="lib/OpenConvert.jar"/>
<pathelement path="lib/langdetect.jar"/>
<pathelement path="lib/nert-3.01.jar"/>
<pathelement path="lib/mapdb-1.0.7.jar"/>
<pathelement path="lib/LAML-1.5.jar"/>
<pathelement path="lib/LBJ2.jar"/>
<pathelement path="lib/LBJ2Library.jar"/>
<pathelement path="lib/LbjNerTagger.jar"/>
<pathelement path="lib/commons-collections-3.2.1.jar"/>
</path>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac encoding="utf-8" srcdir="${src}" destdir="${build}">
<classpath refid="java.class.path"/>
</javac>
</target>
<target name="jar">
<jar destfile="${dist}/spellingvariation.jar">
<fileset dir= "${build}"/>
<fileset dir="resources"/>
</jar>
</target>
<target name="nerEval" depends="compile">
<copy todir="nerEval/nl/namescape/evaluation">
<fileset dir="${build}/nl/namescape/evaluation"/>
</copy>
<copy todir="nerEval/nl/namescape/util">
<fileset dir="${build}/nl/namescape/util"/>
</copy>
<copy todir="nerEval/nl/namescape">
<fileset file="${build}/nl/namescape/Entity.class"/>
<fileset file="${build}/nl/namescape/Nym.class"/>
</copy>
<jar basedir="nerEval" destfile="${dist}/NEREVal.jar">
<manifest>
<attribute name="Main-Class" value="nl.namescape.evaluation.NEREvaluation"/>
</manifest>
</jar>
</target>
<target name="tagger" depends="compile">
<jar destfile="${dist}/DutchTaggerLemmatizer.step1.jar">
<fileset dir= "${build}"/>
<fileset dir="resources"/>
<zipgroupfileset dir="lib" includes="*.jar" excludes="META-INF/*.SF"/>
<!--
<zipgroupfileset dir="lib/commons-math3-3.2" includes="*.jar"/>
-->
<!--
<zipgroupfileset dir="lib/poi" includes="*.jar" excludes="META-INF/*.SF"/>
-->
<!-- kan neo er uit nu? -->
<!--
<zipgroupfileset dir="lib/neo" includes="*.jar" excludes="META-INF/*.SF"/>
-->
<!--
<zipgroupfileset dir="lib" includes="OpenConvert*.jar" excludes="META-INF/*.SF"/>
-->
</jar>
<jar destfile="${dist}/DutchTaggerLemmatizer.jar">
<zipfileset src="${dist}/DutchTaggerLemmatizer.step1.jar" excludes="META-INF/*.SF" />
<manifest>
<attribute name="Main-Class" value="nl.namescape.tagging.ImpactTaggerLemmatizerClient"/>
</manifest>
</jar>
</target>
<target name="dist" depends="compile">
<jar destfile="${dist}/spellingvariation.jar">
<fileset dir= "${build}"/>
<fileset dir="resources"/>
</jar>
</target>
</project>