Skip to content

ontologyportal/sigmanlp

Repository files navigation

Build status

badge

Test status

badge

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

ant update.sigmanlp

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:

<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

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

<preference name="nlpTools" value="yes"/>

jUnit ANT

ant test

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}

About

NLP functionality on top of the Sigma system

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8