NLP functionality on top of the Sigma system
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
build
corpora
doc
docker
lib
src
web
README.txt
build.xml
corpora.properties
pom.xml
sigma-nlp.iml
sigmanlp.iml
updateNLP.sh
web.xml

README.txt

First follow the instructions to install sigmakee at https://github.com/ontologyportal/sigmakee

cd ~
echo "export SIGMA_SRC=~/workspace/sigmakee" >> .bashrc
echo "export CORPORA=~/workspace/sigmanlp/corpora" >> .bashrc
source .bashrc
cd ~/workspace/
git clone https://github.com/ontologyportal/sigmanlp
cd ~/Programs
wget 'http://nlp.stanford.edu/software/stanford-corenlp-full-2018-01-31.zip'
unzip stanford-corenlp-full-2018-01-31.zip
rm stanford-corenlp-full-2018-01-31.zip
cd ~/Programs/stanford-corenlp-full-2018-01-31/
unzip stanford-corenlp-3.9.0-models.jar
cp ~/Programs/stanford-corenlp-full-2018-01-31/stanford-corenlp-3.9.0.jar ~/workspace/sigmanlp/lib
cp ~/Programs/stanford-corenlp-full-2018-01-31/stanford-corenlp-3.9.0-models.jar ~/workspace/sigmanlp/lib
cd ~/workspace/sigmanlp
ant

Then follow the steps in "Account Management" below before proceeding

In your .bashrc you'll need to have a greater heap space allocation than for sigmakee alone

export CATALINA_OPTS="$CATALINA_OPTS -Xms1000M -Xmx7g"

Add the following line to your $SIGMA_HOME/KBs/config.xml file, but replace '~' with the full path
  <preference name="englishPCFG" value="~/Programs/stanford-corenlp-full-2018-01-31" />

If you want to run sigmanlp's web interface then

ant dist

Start Tomcat with
$CATALINA_HOME/bin/startup.sh

http://localhost:8080/sigmanlp/NLP.jsp

If you want to make a link to the NLP tools available from Sigma's various jsp pages then include
the following in your config.xml

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

To run on the command line, try (changing to your paths)

java -Xmx7g -classpath /home/user/workspace/sigmanlp/build/classes:
/home/user/workspace/sigmanlp/build/lib/* com.articulate.nlp.semRewrite.Interpreter -i


Account Management
==================

Add the following to your $CATALINA_HOME/conf/context.xml

<Context crossContext="true">