Updated Makefile
This commit is contained in:
parent
6bb11b5d3f
commit
6cacd5f9a8
4
Makefile
4
Makefile
|
@ -80,6 +80,9 @@ build_spamdetect:
|
||||||
build_translation:
|
build_translation:
|
||||||
cd services/translation; python3 setup.py build; python3 setup.py sdist
|
cd services/translation; python3 setup.py build; python3 setup.py sdist
|
||||||
|
|
||||||
|
build_corenlp:
|
||||||
|
cd services/corenlp; make build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
make build_nlpfr
|
make build_nlpfr
|
||||||
make build_his
|
make build_his
|
||||||
|
@ -89,6 +92,7 @@ build:
|
||||||
make buid_translation
|
make buid_translation
|
||||||
make build_langdetect
|
make build_langdetect
|
||||||
make build_spamdetect
|
make build_spamdetect
|
||||||
|
make build
|
||||||
|
|
||||||
# ======================================================================================================================
|
# ======================================================================================================================
|
||||||
|
|
||||||
|
|
|
@ -42,3 +42,4 @@ make start_translate # Starts the translation server, runs on port 5603
|
||||||
| CoffeeHouse Language Detection | HTTP | 5606 |
|
| CoffeeHouse Language Detection | HTTP | 5606 |
|
||||||
| CoffeeHouse Spam Detection | HTTP | 5601 |
|
| CoffeeHouse Spam Detection | HTTP | 5601 |
|
||||||
| CoffeeHouse Translate | HTTP | 5603 |
|
| CoffeeHouse Translate | HTTP | 5603 |
|
||||||
|
| CoffeeHouse CoreNLP | HTTP | 5604 |
|
|
@ -0,0 +1,19 @@
|
||||||
|
clean:
|
||||||
|
rm -rf build
|
||||||
|
|
||||||
|
build:
|
||||||
|
# Building JAR
|
||||||
|
mkdir build
|
||||||
|
ant jar
|
||||||
|
mv coffeehouse_corenlp.jar build/
|
||||||
|
|
||||||
|
# Adding Libs
|
||||||
|
cp lib/* build/
|
||||||
|
cp liblocal/* build/
|
||||||
|
|
||||||
|
# Updating models
|
||||||
|
python3 update_model.py
|
||||||
|
cp /var/resources/CoffeeHouseData-CoreNLP/* build/
|
||||||
|
|
||||||
|
start:
|
||||||
|
cd build; java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 5604 -timeout 15000
|
|
@ -392,7 +392,7 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jar" depends="compile">
|
<target name="jar" depends="compile">
|
||||||
<jar destfile="javanlp-core.jar">
|
<jar destfile="coffeehouse_corenlp.jar">
|
||||||
<fileset dir="${project.core}/classes" />
|
<fileset dir="${project.core}/classes" />
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
@ -408,7 +408,7 @@
|
||||||
<macrodef name="buildjsp">
|
<macrodef name="buildjsp">
|
||||||
<attribute name="webapp.path"/> <!-- where to find the .jsp files -->
|
<attribute name="webapp.path"/> <!-- where to find the .jsp files -->
|
||||||
<attribute name="webapp.war"/> <!-- name of the .war to produce -->
|
<attribute name="webapp.war"/> <!-- name of the .war to produce -->
|
||||||
<attribute name="webapp.jar"/> <!-- probably javanlp-core.jar -->
|
<attribute name="webapp.jar"/> <!-- probably coffeehouse_corenlp.jar -->
|
||||||
<element name="webapp.lib"/> <!-- libs to include -->
|
<element name="webapp.lib"/> <!-- libs to include -->
|
||||||
<element name="webapp.data"/> <!-- data files to include -->
|
<element name="webapp.data"/> <!-- data files to include -->
|
||||||
|
|
||||||
|
@ -465,7 +465,7 @@
|
||||||
<war destfile="sutime.war"
|
<war destfile="sutime.war"
|
||||||
webxml="${source.path}/edu/stanford/nlp/time/suservlet/WEB-INF/web.xml">
|
webxml="${source.path}/edu/stanford/nlp/time/suservlet/WEB-INF/web.xml">
|
||||||
<lib dir=".">
|
<lib dir=".">
|
||||||
<include name="javanlp-core.jar"/>
|
<include name="coffeehouse_corenlp.jar"/>
|
||||||
</lib>
|
</lib>
|
||||||
<lib dir="${basedir}/lib">
|
<lib dir="${basedir}/lib">
|
||||||
<include name="commons-lang3-3.1.jar"/>
|
<include name="commons-lang3-3.1.jar"/>
|
||||||
|
@ -494,7 +494,7 @@
|
||||||
<war destfile="openie.war"
|
<war destfile="openie.war"
|
||||||
webxml="${source.path}/edu/stanford/nlp/naturalli/demo/web.xml">
|
webxml="${source.path}/edu/stanford/nlp/naturalli/demo/web.xml">
|
||||||
<lib dir=".">
|
<lib dir=".">
|
||||||
<include name="javanlp-core.jar"/>
|
<include name="coffeehouse_corenlp.jar"/>
|
||||||
</lib>
|
</lib>
|
||||||
<zipfileset prefix="WEB-INF/data"
|
<zipfileset prefix="WEB-INF/data"
|
||||||
file="/u/nlp/data/pos-tagger/distrib/english-left3words-distsim.tagger"/>
|
file="/u/nlp/data/pos-tagger/distrib/english-left3words-distsim.tagger"/>
|
||||||
|
@ -535,7 +535,7 @@
|
||||||
description="build the parser webapp">
|
description="build the parser webapp">
|
||||||
<buildjsp webapp.path="edu/stanford/nlp/parser/webapp"
|
<buildjsp webapp.path="edu/stanford/nlp/parser/webapp"
|
||||||
webapp.war="parser.war"
|
webapp.war="parser.war"
|
||||||
webapp.jar="javanlp-core.jar">
|
webapp.jar="coffeehouse_corenlp.jar">
|
||||||
<webapp.lib>
|
<webapp.lib>
|
||||||
<lib dir="/u/nlp/data/StanfordCoreNLPModels">
|
<lib dir="/u/nlp/data/StanfordCoreNLPModels">
|
||||||
<include name="stanford-spanish-corenlp-models-current.jar"/>
|
<include name="stanford-spanish-corenlp-models-current.jar"/>
|
||||||
|
@ -565,11 +565,11 @@
|
||||||
description="build the ner webapp">
|
description="build the ner webapp">
|
||||||
<!-- This is built from a java servlet, not a jsp. -->
|
<!-- This is built from a java servlet, not a jsp. -->
|
||||||
<!-- The class needed for the results page will already be in
|
<!-- The class needed for the results page will already be in
|
||||||
javanlp-core.jar -->
|
coffeehouse_corenlp.jar -->
|
||||||
<war destfile="ner.war"
|
<war destfile="ner.war"
|
||||||
webxml="${source.path}/edu/stanford/nlp/ie/ner/webapp/WEB-INF/web.xml">
|
webxml="${source.path}/edu/stanford/nlp/ie/ner/webapp/WEB-INF/web.xml">
|
||||||
<lib dir=".">
|
<lib dir=".">
|
||||||
<include name="javanlp-core.jar"/>
|
<include name="coffeehouse_corenlp.jar"/>
|
||||||
</lib>
|
</lib>
|
||||||
<lib dir="${basedir}/lib">
|
<lib dir="${basedir}/lib">
|
||||||
<include name="commons-lang3-3.1.jar"/>
|
<include name="commons-lang3-3.1.jar"/>
|
||||||
|
@ -595,11 +595,11 @@
|
||||||
description="build the corenlp webapp">
|
description="build the corenlp webapp">
|
||||||
<!-- This is built from a java servlet, not a jsp. -->
|
<!-- This is built from a java servlet, not a jsp. -->
|
||||||
<!-- The class needed for the results page will already be in
|
<!-- The class needed for the results page will already be in
|
||||||
javanlp-core.jar -->
|
coffeehouse_corenlp.jar -->
|
||||||
<war destfile="corenlp.war"
|
<war destfile="corenlp.war"
|
||||||
webxml="${source.path}/edu/stanford/nlp/pipeline/webapp/WEB-INF/web.xml">
|
webxml="${source.path}/edu/stanford/nlp/pipeline/webapp/WEB-INF/web.xml">
|
||||||
<lib dir=".">
|
<lib dir=".">
|
||||||
<include name="javanlp-core.jar"/>
|
<include name="coffeehouse_corenlp.jar"/>
|
||||||
</lib>
|
</lib>
|
||||||
<lib dir="${basedir}/lib">
|
<lib dir="${basedir}/lib">
|
||||||
<include name="commons-lang3-3.1.jar"/>
|
<include name="commons-lang3-3.1.jar"/>
|
||||||
|
@ -647,7 +647,7 @@
|
||||||
identifier="edu.stanford.nlp.trees.tregex.gui.TregexGUI"
|
identifier="edu.stanford.nlp.trees.tregex.gui.TregexGUI"
|
||||||
mainclassname="edu.stanford.nlp.trees.tregex.gui.TregexGUI">
|
mainclassname="edu.stanford.nlp.trees.tregex.gui.TregexGUI">
|
||||||
<runtime dir="${env.JAVA_HOME}" />
|
<runtime dir="${env.JAVA_HOME}" />
|
||||||
<classpath file="javanlp-core.jar" />
|
<classpath file="coffeehouse_corenlp.jar" />
|
||||||
</bundleapp>
|
</bundleapp>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
from resource_fetch import ResourceFetch
|
||||||
|
rf = ResourceFetch()
|
||||||
|
rf.fetch("Intellivoid", "CoffeeHouseData-CoreNLP")
|
Loading…
Reference in New Issue