Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 60 lines (49 sloc) 1.879 kB
<project name="StanfordCoreNLP" default="main" basedir=".">
<description>Stanford CoreNLP Wrapper</description>
<property name="src" location="src" />
<property name="genjava" location="gen-java" />
<property name="genpy" location="gen-py" />
<property name="build" location="build" />
<property environment="env"/>
<path id="libs.classpath">
<pathelement path="${env.CLASSPATH}" />
<path id="build.classpath">
<path refid="libs.classpath" />
<pathelement path="${genjava}" />
<!-- Set $THRIFTPATH to the root of your thrift installation. -->
<target name="combine_thrift_jars">
<zip destfile="${env.THRIFTPATH}/all_thrift_jars.jar">
<zipgroupfileset dir="${env.THRIFTPATH}" includes="*.jar"/>
<target name="init">
<tstamp />
<mkdir dir="${build}"/>
<mkdir dir="${build}/log"/>
<target name="generate">
<!-- Generate the thrift gen-java and gen-py source -->
<!-- Assumes thrift is on your path. -->
<exec executable="thrift" failonerror="true">
<arg line="--gen java corenlp.thrift"/>
<exec executable="thrift" failonerror="true">
<arg line="--gen py:utf8strings,slots,new_style corenlp.thrift"/>
<target name="compile" depends="init, generate">
<javac srcdir="${genjava}" destdir="${build}" />
<javac srcdir="${src}" destdir="${build}" classpathref="build.classpath" />
<target name="main" description="Run" depends="compile">
<jar jarfile="stanford-corenlp-wrapper.jar" basedir="${build}"/>
<target name="clean">
<delete dir="${genjava}" />
<delete dir="${genpy}/corenlp" />
<delete dir="${build}" />
<delete file="stanford-corenlp-wrapper.jar" />
Jump to Line
Something went wrong with that request. Please try again.