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
antTo keep this repository updated
ant update.sigmanlpjava -Xmx10g -Xss1m -cp $SIGMANLP_CP com.articulate.nlp.semRewrite.Interpreter -iAdd the following line to your $SIGMA_HOME/KBs/config.xml file, but replace
/home/theuser with your info:
<preference name="englishPCFG" value="/home/theuser/Programs/stanford-corenlp-latest/stanford-corenlp-4.5.7-models.jar"/>** 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:
ant dist$CATALINA_HOME/bin/startup.shOpen a browser with:
http://localhost:8080/sigmanlp/NLP.jsp
admin/admin$CATALINA_HOME/bin/shutdown.shIf 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
<preference name="nlpTools" value="yes"/>ant testjava -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.RunAllSemRewriteIntegTestTo 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}