GitHub - ontologyportal/sigmanlp: NLP functionality on top of the Sigma system (original) (raw)
Build status
Test status
Installation
First, follow the instructions to install sigmakee
For macOS, replace .bashrc with .zshrc
cd ~ echo "# SigmaNLP" >> .bashrc echo "export CORPORA="$ONTOLOGYPORTAL_GIT/sigmanlp/corpora"" >> .bashrc echo "export SIGMANLP_CP="$ONTOLOGYPORTAL_GIT/sigmanlp/build/sigmanlp.jar:$ONTOLOGYPORTAL_GIT/sigmanlp/lib/*"" >> .bashrc source ~/.bashrc cd ~/workspace/ git clone https://github.com/ontologyportal/sigmanlp cd ~/workspace/sigmanlp ant
To keep this repository updated
Test SigmaNLP on the command line
java -Xmx10g -Xss1m -cp $SIGMANLP_CP com.articulate.nlp.semRewrite.Interpreter -i
Account Management
Add the following line to your $SIGMA_HOME/KBs/config.xml file, but replace
/home/theuser with your info:
** NOTE: If you see a java.io.StreamCorruptedException being thrown in the
console, then comment out the above "preference" element from your
$SIGMA_HOME/KBs/config.xml. SigmaNLP will work without that particular
element
If you want to run sigmanlp's web interface then:
Start Tomcat with:
$CATALINA_HOME/bin/startup.sh
Open a browser with:
http://localhost:8080/sigmanlp/NLP.jsp admin/admin
Stop Tomcat with:
$CATALINA_HOME/bin/shutdown.sh
If you want to make a link to the NLP tools available from Sigma's various jsp
pages then include the following in your $SIGMA_HOME/KBs/config.xml
jUnit ANT
jUnit CLI
java -Xmx10g -Xss1m -cp $SIGMANLP_CP org.junit.runner.JUnitCore com.articulate.nlp.semRewrite.RunAllUnitSemRewrite
java -Xmx10g -Xss1m -cp $SIGMANLP_CP org.junit.runner.JUnitCore com.articulate.nlp.semRewrite.RunAllSemRewriteIntegTest
IDE
To build/run/debug/test using the NetBeans IDE, define a nbproject/private/private.properties file with these keys:
# private properties
javaapis.dir=${user.home}/javaapis
workspace=${javaapis.dir}/INSAFE
# The default installation space is: ~/workspace. However, it can be
# anywhere on your system as long as you define the "workspace" key above.
catalina.home=${path.to.your.tomcat9}
# JavaMail properties
user=${your.email.user.name}
my.email=${user}@${your.email.domain}
my.name=${your.name}