Repository navigation
Dependencies
The source for OpenGIA is written in ISO C++, some of which may require ISO/IEC 14882:2011 (C++11).
OpenGIA requires the following software listed below to be pre-installed.
For the installation of optional dependencies please see the Files wiki page.
(Linux Ubuntu 14.04 Only)
sudo apt-get install freeglut3 OR;
sudo dpkg -i freeglut3_2.8.1-1_amd64.deb
(Linux Ubuntu 16.04 Only)
sudo apt-get install freeglut3 OR;
sudo dpkg -i freeglut3_2.8.1-2_amd64.deb
(Linux Ubuntu 20.04 Only)
sudo apt-get install freeglut3 OR;
sudo dpkg -i freeglut3_2.8.1-3_amd64.deb
(Linux EL5 Only)
yum install freeglut OR;
rpm -i freeglut-2.4.0-7.1.el5.x86_64.rpm
(Linux EL6 Only)
yum install freeglut OR;
rpm -i freeglut-2.6.0-1.el6.x86_64.rpm
(Linux EL7 Only)
yum install freeglut OR;
rpm -i freeglut-2.8.1-3.el7.x86_64.rpm
(Windows XP Only)
unzip freeglut 2.4.0 (compiled).zip
copy freeglut.dll from freeglut 2.4.0 (compiled).zip to c:\Windows\System32
(Windows 7/8 x86_64 Only)
unzip freeglut 2.6.0 (compiled).zip
copy freeglut.dll from freeglut 2.6.0 (compiled) - 32bit.zip to: C:\WINDOWS\SysWOW64
[or System32]
(Windows 10 x86_64 Only)
unzip freeglut 2.8.1 (compiled).zip
copy freeglut.dll from freeglut 2.8.1 (compiled) - 32bit.zip to: C:\WINDOWS\SysWOW64 [or System32]
Freeglut may be downloaded via;
* (Linux) distribution repository
* (Windows)
Install Visual C++ 2010 (download VS2010Express1.iso from Microsoft.com)
download freeglut-2.8.1.tar.gz from https://sourceforge.net/projects/freeglut/files/freeglut/2.8.1/
open freeglut-2.8.1/VisualStudio/2010/freeglut.vcxproj
change to 'Release'
Build Solution
extract files from freeglut-2.8.1\VisualStudio\lib\x86 folder;
copy freeglut.dll to freeglut 2.8.1 (compiled) - 32bit\System32
copy freeglut.lib to freeglut 2.8.1 (compiled) - 32bit\lib
extract files from freeglut-2.6.0/Include/GL
Copy 4 files to freeglut 2.8.1 (compiled) - 32bit\include\GL
(Linux Ubuntu 14.04 Only)
sudo apt-get install wordnet wordnet-sense-index OR;
sudo dpkg -i wordnet_1%3a3.0-32_amd64.deb wordnet-base_1%3a3.0-32_all.deb wordnet-dev_1%3a3.0-32_amd64.deb wordnet-gui_1%3a3.0-32_amd64.deb wordnet-sense-index_1%3a3.0-32_all.deb
(Linux Ubuntu 16.04 Only)
sudo apt-get install wordnet [wordnet-sense-index] OR;
sudo dpkg -i wordnet_1%3a3.0-33_amd64.deb wordnet-base_1%3a3.0-33_all.deb wordnet-dev_1%3a3.0-33_amd64.deb wordnet-gui_1%3a3.0-33_amd64.deb [wordnet-sense-index_1%3a3.0-33_all.deb]
(Linux Ubuntu 20.04 Only)
sudo apt-get install wordnet [wordnet-sense-index] OR;
sudo dpkg -i wordnet_1%3a3.0-35_amd64.deb wordnet-base_1%3a3.0-35_all.deb wordnet-dev_1%3a3.0-35_amd64.deb wordnet-gui_1%3a3.0-35_amd64.deb [wordnet-sense-index_1%3a3.0-35_all.deb]
(Linux EL5 Only)
yum install wordnet OR;
rpm -i wordnet-3.0-13.el6.x86_64.rpm
(Linux EL6 Only)
yum install wordnet OR;
rpm -i wordnet-3.0-13.el5.x86_64.rpm
(Linux EL7 Only)
yum install wordnet OR;
rpm -i wordnet-3.0-13.el7.x86_64.rpm?
(Windows XP Only {UNTESTED})
Install WordNet_3.0_win32-setup.exe (from Google Code)
(Windows 7/8/10 x86_64 Only)
Install WordNet_3.0_win32-setup.exe (from Google Code)
WordNet may be downloaded via;
- (Windows) Download WordNet 3.0 for Windows from http://code.google.com/p/wordnet3p0forwindows
Create/Copy execute-relex.sh and place it in the Relex binary folder.
NB execute-relex.sh contains the following text;
export LANG=en_US.UTF-8
VM_OPTS="-Xmx1024m"
RELEX_OPTS="\
-Djava.library.path=/usr/lib:/usr/local/lib \ [Ubuntu: -Djava.library.path=/usr/lib:/usr/lib/jni:/usr/local/lib:/usr/local/lib/jni \ ] {extract from autogenerated batch-process.sh}
-Drelex.algpath=data/relex-semantic-algs.txt \
-Dwordnet.configfile=data/wordnet/file_properties.xml \
"
CLASSPATH="-classpath \
bin:\
/usr/local/share/java/opennlp-tools-1.4.3.jar:\
/usr/local/share/java/opennlp-tools-1.3.0.jar:\
/usr/local/share/java/maxent-2.5.2.jar:\
/usr/local/share/java/maxent-2.4.0.jar:\
/usr/local/share/java/trove.jar:\
/usr/local/share/java/jwnl.jar:\
/usr/local/share/java/jwnl-1.3.3.jar:\
/usr/share/java/commons-logging.jar:\
/usr/share/java/gnu-getopt.jar:\
/usr/local/share/java/linkgrammar.jar:\
/usr/share/java/linkgrammar.jar:\
/usr/share/java/xercesImpl.jar:\
/usr/share/java/xml-apis.jar:\
/opt/GATE-4.0/lib/PDFBox-0.7.2.jar:\
#/opt/GATE-4.0/bin/gate.jar:\
/opt/GATE-4.0/lib/jdom.jar:\
/opt/GATE-4.0/lib/jasper-compiler-jdt.jar:\
/opt/GATE-4.0/lib/nekohtml-0.9.5.jar:\
/opt/GATE-4.0/lib/ontotext.jar:\
"
1. Install Java Development Tools (eg openjdk and openjdk-devel)
Linux Ubuntu 14.04 example;
sudo apt-get install openjdk-7-jdk OR;
sudo dpkg -i openjdk-7-jdk_7u51-2.4.4-0ubuntu0.13.10.1_amd64.deb (and dependencies)
Linux EL5/EL6 example;
yum install java-1.6.0-openjdk-devel
yum install java-1.6.0-openjdk
OR (EL5)
rpm -i java-1.6.0-openjdk-devel.el5.x86_64.rpm
rpm -i java-1.6.0-openjdk.el5.x86_64.rpm
OR (EL6)
java-1.6.0-openjdk-devel-1.6.0.0-1.36.b17.el6_0.x86_64.rpm / java-1.6.0-openjdk-devel-1.6.0.0-1.39.b17.el6_0.x86_64.rpm
java-1.6.0-openjdk-1.6.0.0-1.36.b17.el6_0.x86_64.rpm / java-1.6.0-openjdk-1.6.0.0-1.39.b17.el6_0.x86_64.rpm
2. Install Link Parser (download: http://www.link.cs.cmu.edu/link/ alternate: http://www.abisource.com/projects/link-grammar/#download)
Linux Ubuntu 14.04 example;
sudo apt-get install link-grammar liblink-grammar4-dev liblink-grammar4-java OR;
sudo dpkg -i liblink-grammar4_4.7.4-2_amd64.deb liblink-grammar4-dev_4.7.4-2_amd64.deb liblink-grammar4-java_4.7.4-2_amd64.deb (and dependencies)
Linux EL5/EL6 example;
tar -xvf link-grammar-4.7.2.tar.gz
cd link-grammar-4.7.2
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
./configure
make
su root
make install
3. Install WordNet dependencies (eg tcl and tk)
Linux Ubuntu 14.04 example;
sudo apt-get install tcl8.5 tcl8.5-lib tk8.5 tk8.5-lib OR;
sudo dpkg -i tcl8.5_8.5.13-1ubuntu4_amd64.deb tcl8.5-lib_8.5.13-1ubuntu4_amd64.deb tk8.5_8.5.11-2ubuntu4_amd64.deb tk8.5-lib_8.5.11-2ubuntu4_amd64.deb (and dependencies)
Linux EL5/EL6 example;
yum install tcl
yum install tcl-devel
yum install tk
yum install tk-devel
OR (EL5);
rpm -i tcl-8.4.13-4.el5.x86_64.rpm
rpm -i tcl-devel-8.4.13-4.el5.x86_64.rpm
rpm -i tk-8.4.13-5.el5_1.1.x86_64.rpm
rpm -i tk-devel-8.4.13-5.el5_1.1.x86_64.rpm
OR (EL6);
rpm -i tcl-8.5.7-6.el6.x86_64.rpm
rpm -i tcl-devel-8.5.7-6.el6.x86_64.rpm
rpm -i tk-8.5.7-5.el6.x86_64.rpm
rpm -i tk-devel-8.5.7-5.el6.x86_64.rpm
4. Install WordNet
Linux Ubuntu 14.04 example;
sudo apt-get install wordnet wordnet-dev wordnet-sense-index OR;
sudo dpkg -i wordnet_1%3a3.0-31_amd64.deb wordnet-base_1%3a3.0-31_all.deb wordnet-dev_1%3a3.0-31_amd64.deb wordnet-gui_1%3a3.0-31_amd64.deb wordnet-sense-index_1%3a3.0-31_all.deb
Linux EL5/EL6 example;
rpm -i epel-release...
yum install wordnet wordnet-devel
OR (EL5);
rpm -i wordnet-3.0-13.el5.x86_64.rpm wordnet-devel-3.0-13.el5.x86_64.rpm
OR (EL6);
rpm -i wordnet-3.0-13.el6.x86_64.rpm wordnet-devel-3.0-13.el6.x86_64.rpm
5. Install JWNL Java wordnet library (download: http://sourceforge.net/projects/jwordnet/)
Linux Ubuntu 14.04 example;
unzip jwnl14-rc2.zip
cd jwnl14-rc2
sudo cp jwnl.jar /usr/share/java/ [see relex-1.4.0/build.xml for location]
sudo mkdir /usr/local/share/java/
sudo cp jwnl.jar /usr/local/share/java/ [see relex-1.4.0/batch-process.sh for location]
sudo chmod 777 /usr/share/java/jwnl.jar
sudo chmod 777 /usr/local/share/java/jwnl.jar
Linux EL5/EL6 example;
unzip jwnl14-rc2.zip
cd jwnl14-rc2
su root
cp jwnl.jar /usr/share/java/ [see relex-1.4.0/build.xml for location]
mkdir /usr/local/share/java/
cp jwnl.jar /usr/local/share/java/ [see relex-1.4.0/batch-process.sh for location]
chmod 777 /usr/share/java/jwnl.jar
chmod 777 /usr/local/share/java/jwnl.jar
6. Install Relex Dependencies (ant)
Linux Ubuntu 14.04 example;
sudo apt-get install ant
sudo apt-get install libcommons-logging-java
OR;
sudo dpkg -i ant_1.9.2-1_all.deb ant-optional_1.9.2-1_all.deb libxerces2-java_2.11.0-7_all.deb libxml-commons-external-java_1.4.01-2build1_all.deb libxml-commons-resolver1.1-java_1.2-7build1_all.deb
sudo dpkg -i libapache-pom-java_10-2build1_all.deb libcommons-logging-java_1.1.3-1_all.deb libcommons-parent-java_22-2build1_all.deb liblink-grammar4-dev_4.7.4-2_amd64.deb liblink-grammar4-java_4.7.4-2_amd64.deb
Linux EL5/EL6 example;
yum install ant
OR [EL5]
rpm -i ant-1.6.5-2jpp.2.x86_64.rpm
OR [EL6]
rpm -i ant-1.7.1-13.el6.x86_64.rpm
rpm -i xml-commons-apis-1.3.04-3.6.el6.x86_64.rpm
rpm -i xml-commons-resolver-1.1-4.18.el6.x86_64.rpm
rpm -i xerces-j2-2.7.1-12.5.el6.x86_64.rpm
rpm -i ant-nodeps-1.7.1-13.el6.x86_64.rpm
rpm -i jakarta-commons-logging-1.0.4-10.el6.noarch.rpm?
rpm -i ant-commons-logging-1.7.1-13.el6.x86_64.rpm
7. Install Gate 4.0 (optional) (download: http://gate.ac.uk/download/)
Linux EL5/EL6 example;
[need to login as root at least one time in the past before able to run this from root]
su root
java -jar gate-4.0-build2752-installer-other.jar
run through GUI;
set installation path to /opt/GATE-4.0
tick sources and development documentation
install
8. Install GNU getopt (optional) (download: http://www.java2s.com/Code/Jar/GHI/Downloadgetoptjar.htm)
Linux Ubuntu 14.04 example;
install the "libgetopt-java" package
Linux EL5/EL6 example;
unzip getopt.jar.zip
cd getopt.jar.zip_FILES
su root
cp getopt.jar /usr/share/java/gnu-getopt.jar
9. Install opennlp (optional) (download: http://sourceforge.net/projects/opennlp/)
Linux EL5/EL6 example;
tar -xvf opennlp-tools-1.4.3.tgz
cd opennlp-tools-1.4.3
su root
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
./build.sh
cp output/opennlp-tools-1.4.3.jar /usr/local/share/java/
cp lib/maxent-2.5.2.jar /usr/local/share/java/
cp lib/jwnl-1.3.3.jar /usr/local/share/java/
cp lib/jwnl-1.3.3.jar /usr/local/share/java/jwnl.jar
cp lib/trove.jar /usr/local/share/java/
10. Install Relex (download: http://sourceforge.net/projects/relex/ alternate: https://launchpad.net/relex/+download)
Linux Ubuntu 14.04 example;
tar -xvf relex-1.4.0.tar.gz
cd relex-1.4.0
ant
./batch-process.sh
Linux EL5/EL6 example;
tar -xvf relex-1.4.0.tar.gz
cd relex-1.4.0
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
ant
./batch-process.sh
11. Configure relex xml files for wordnet
Linux Ubuntu 14.04 example;
cd relex-1.4.0/data/wordnet
gedit file_properties.xml
change dictionary_path to <param name="dictionary_path" value="/usr/share/wordnet"/>
Linux EL5/EL6 example;
cd relex-1.4.0/data/wordnet
gedit file_properties.xml
change dictionary_path to <param name="dictionary_path" value="/usr/share/wordnet-3.0/dict"/>
12. Configure relex batch-process.sh/.sh class paths;*
Linux EL5/EL6 and Ubuntu example;
cd relex-1.4.0
gedit batch-process.sh [append/modify the following]
/usr/local/share/java/jwnl-1.3.3.jar:\
/usr/share/java/xml-apis.jar:\
/opt/GATE-4.0/lib/PDFBox-0.7.2.jar:\
Download OpenGIANLPDependencies-25September2012.zip / OpenGIANLPDependencies-12October2013.zip / OpenGIANLPDependencies-19April2014 / OpenGIANLPDependencies-07July2015.zip / OpenGIANLPDependencies-19May2017.zip
Copy execute-stanfordParser.sh (Linux) / execute-stanfordParser.bat (Windows) and place it in the Stanford Parser binary folder.
NB execute-stanfordParser.sh (#!/usr/bin/env bash) contains the following text;
#!/usr/bin/env bash
scriptdir=`dirname $0`
java -mx2g -cp "$scriptdir/*:" edu.stanford.nlp.parser.lexparser.LexicalizedParser -outputFormat "wordsAndTags,penn,typedDependencies" edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz $3/$1 > $4/$2
NB execute-stanfordParser.bat contains the following text;
@echo off
:: Runs the English PCFG parser on one or more files, printing trees only
:: usage: lexparser fileToparse
"C:\Program Files\Java\jre8\bin\java.exe" -d64 -mx2g -cp "*;" edu.stanford.nlp.parser.lexparser.LexicalizedParser -outputFormat "wordsAndTags,penn,typedDependencies" edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz %3/%1 > %4/%2
Stanford Parser may be downloaded via;
(Linux and Windows) eg http://nlp.stanford.edu/software/stanford-parser-2012-03-09.tgz / http://nlp.stanford.edu/software/stanford-parser-2013-04-05.zip / http://nlp.stanford.edu/software/stanford-parser-full-2014-01-04.zip / / http://nlp.stanford.edu/software/stanford-parser-full-2015-04-20.zip / http://nlp.stanford.edu/software/stanford-parser-full-2016-10-31.zip
Note Stanford Parser/CoreNLP requires Java Runtime Environment to be installed;
(Linux Ubuntu 14.04 only);
Java 7 (1.7) installation:
sudo apt-get install openjdk-7-jdk
Java 8 (1.8) installation - required for Stanford Parser/CoreNLP 2015-04-20+:
(http://ubuntuhandbook.org/index.php/2015/01/install-openjdk-8-ubuntu-14-04-12-04-lts)
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java [to set active/default version of Java]
sudo update-alternatives --config javac [to set active/default Java Compiler]
java -version [check version of java running]
(Linux Ubuntu 16.04 only);
Java 8 (1.8) installation:
sudo apt-get install openjdk-8-jdk
(Linux Ubuntu 20.04 only);
Java 8 (1.8) installation:
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java [to set active/default version of Java]
java -version [check version of java running]
(Linux EL5/EL6 only);
Java 7 (1.7) installation:
yum install java-1.7.0-openjdk-devel
yum install java-1.7.0-openjdk
Java 8 (1.8) installation - required for Stanford Parser/CoreNLP 2015-04-20+:
yum install java-1.8.0-openjdk.x86_64
sudo update-alternatives --config java [to set active/default version of Java]
NOTNEEDED: sudo update-alternatives --config javac [to set active/default Java Compiler]
java -version [check version of java running]
(Linux EL7 only);
Java 7 (1.7) installation
yum search java | grep openjdk
yum install java-1.7.0-openjdk-headless.x86_64
Java 8 (1.8) installation - required for Stanford Parser/CoreNLP 2015-04-20+:
yum search java | grep openjdk
yum install java-1.8.0-openjdk-headless.x86_64
(Windows 7/8/10 x86_64 Only)
Java 7 (1.7) installation:
download and install jre-7uXX-windows-x64.exe
Ensure to install Java 7 to "C:\Program Files\Java\jre7"
Java 8 (1.8) installation - required for Stanford Parser/CoreNLP 2015-04-20+:
download and install jre-8uXX-windows-x64.exe
(http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html)
Ensure to install Java 8 to "C:\Program Files\Java\jre8" (change destination folder when installing and create "jre8" folder)
Download OpenGIANLPDependencies-25September2012.zip / OpenGIANLPDependencies-12October2013.zip / OpenGIANLPDependencies-19April2014 / OpenGIANLPDependencies-07July2015.zip / OpenGIANLPDependencies-19May2017.zip
Copy execute-stanfordCoreNLP.sh and execute-stanfordCoreNLPwithoutPT.sh (Linux) / execute-stanfordCoreNLP.bat and execute-stanfordCoreNLPwithoutPT.bat (Windows) and place them in the Stanford CoreNLP binary folder.
NB execute-stanfordCoreNLP.sh contains the following text (depending on the version of Stanford CoreNLP);
eg;
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-2012-04-03.jar:$scriptdir/stanford-corenlp-2012-03-09-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file $3/$1 -outputDirectory $4 -outputExtension $5
/
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-1.3.5.jar:$scriptdir/stanford-corenlp-1.3.5-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar:$scriptdir/jollyday.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file $3/$1 -outputDirectory $4 -outputExtension $5
/
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-3.3.1.jar:$scriptdir/stanford-corenlp-3.3.1-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar:$scriptdir/jollyday.jar:$scriptdir/ejml-0.23.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file $3/$1 -outputDirectory $4 -outputExtension $5
/
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-3.5.2.jar:$scriptdir/stanford-corenlp-3.5.2-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar:$scriptdir/jollyday.jar:$scriptdir/ejml-0.23.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file $3/$1 -outputDirectory $4 -outputExtension $5
/
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-3.7.0.jar:$scriptdir/stanford-corenlp-3.7.0-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar:$scriptdir/jollyday.jar:$scriptdir/ejml-0.23.jar:$scriptdir/protobuf.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file $3/$1 -outputDirectory $4 -outputExtension $5
NB execute-stanfordCoreNLP.bat contains the following text (depending on the version of Stanford CoreNLP);
eg;
"C:\Program Files\Java\jre7\bin\java.exe" -d64 -cp stanford-corenlp-2012-04-03.jar;stanford-corenlp-2012-03-09-models.jar;xom.jar;joda-time.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file %3/%1 -outputDirectory %4 -outputExtension %5
/
"C:\Program Files\Java\jre7\bin\java.exe" -d64 -cp stanford-corenlp-1.3.5.jar;stanford-corenlp-1.3.5-models.jar;xom.jar;joda-time.jar;jollyday.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file %3/%1 -outputDirectory %4 -outputExtension %5
/
"C:\Program Files\Java\jre7\bin\java.exe" -d64 -cp stanford-corenlp-3.3.1.jar;stanford-corenlp-3.3.1-models.jar;xom.jar;joda-time.jar;jollyday.jar;ejml-0.23.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file %3/%1 -outputDirectory %4 -outputExtension %5
/
"C:\Program Files\Java\jre8\bin\java.exe" -d64 -cp stanford-corenlp-3.5.2.jar;stanford-corenlp-3.5.2-models.jar;xom.jar;joda-time.jar;jollyday.jar;ejml-0.23.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file %3/%1 -outputDirectory %4 -outputExtension %5
/
"C:\Program Files\Java\jre8\bin\java.exe" -d64 -cp stanford-corenlp-3.7.0.jar;stanford-corenlp-3.7.0-models.jar;xom.jar;joda-time.jar;jollyday.jar;ejml-0.23.jar;protobuf.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,parse,dcoref -file %3/%1 -outputDirectory %4 -outputExtension %5
NB execute-stanfordCoreNLPwithoutPT.sh contains the following text (depending on the version of Stanford CoreNLP);
eg;
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-2012-04-03.jar:$scriptdir/stanford-corenlp-2012-03-09-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file $3/$1 -outputDirectory $4 -outputExtension $5
/
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-1.3.5.jar:$scriptdir/stanford-corenlp-1.3.5-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar:$scriptdir/jollyday.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file $3/$1 -outputDirectory $4 -outputExtension $5
/
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-3.3.1.jar:$scriptdir/stanford-corenlp-3.3.1-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar:$scriptdir/jollyday.jar:$scriptdir/ejml-0.23.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file $3/$1 -outputDirectory $4 -outputExtension $5
/
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-3.5.2.jar:$scriptdir/stanford-corenlp-3.5.2-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar:$scriptdir/jollyday.jar:$scriptdir/ejml-0.23.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file $3/$1 -outputDirectory $4 -outputExtension $5
/
scriptdir=`dirname $0`
java -cp $scriptdir/stanford-corenlp-3.7.0.jar:$scriptdir/stanford-corenlp-3.7.0-models.jar:$scriptdir/xom.jar:$scriptdir/joda-time.jar:$scriptdir/jollyday.jar:$scriptdir/ejml-0.23.jar:$scriptdir/protobuf.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file $3/$1 -outputDirectory $4 -outputExtension $5
NB execute-stanfordCoreNLPwithoutPT.bat contains the following text (depending on the version of Stanford CoreNLP);
eg;
"C:\Program Files\Java\jre7\bin\java.exe" -d64 -cp stanford-corenlp-2012-04-03.jar;stanford-corenlp-2012-03-09-models.jar;xom.jar;joda-time.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file %3/%1 -outputDirectory %4 -outputExtension %5
/
"C:\Program Files\Java\jre7\bin\java.exe" -d64 -cp stanford-corenlp-1.3.5.jar;stanford-corenlp-1.3.5-models.jar;xom.jar;joda-time.jar;jollyday.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file %3/%1 -outputDirectory %4 -outputExtension %5
/
"C:\Program Files\Java\jre7\bin\java.exe" -d64 -cp stanford-corenlp-3.3.1.jar;stanford-corenlp-3.3.1-models.jar;xom.jar;joda-time.jar;jollyday.jar;ejml-0.23.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file %3/%1 -outputDirectory %4 -outputExtension %5
/
"C:\Program Files\Java\jre8\bin\java.exe" -d64 -cp stanford-corenlp-3.5.2.jar;stanford-corenlp-3.5.2-models.jar;xom.jar;joda-time.jar;jollyday.jar;ejml-0.23.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file %3/%1 -outputDirectory %4 -outputExtension %5
/
"C:\Program Files\Java\jre8\bin\java.exe" -d64 -cp stanford-corenlp-3.7.0.jar;stanford-corenlp-3.7.0-models.jar;xom.jar;joda-time.jar;jollyday.jar;ejml-0.23.jar;protobuf.jar -Xmx2g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse -file %3/%1 -outputDirectory %4 -outputExtension %5
Stanford CoreNLP may be downloaded via;
(Linux and Windows) eg http://nlp.stanford.edu/software/stanford-corenlp-2012-04-03.tgz / http://nlp.stanford.edu/software/stanford-corenlp-full-2013-04-04.zip / http://nlp.stanford.edu/software/stanford-corenlp-full-2014-01-04.zip / http://nlp.stanford.edu/software/stanford-corenlp-full-2015-04-20.zip / http://nlp.stanford.edu/software/stanford-corenlp-full-2016-10-31.zip
Note Stanford Parser/CoreNLP requires Java Runtime Environment to be installed (see above for instructions).
Install dos2unix (required for Stanford CoreNLP compatibility: this is executed by GIA):
(Linux Ubuntu 16.04 Only)
sudo apt-get install dos2unix
sudo dpkg -i dos2unix_6.0.4-1_amd64.deb
(Linux Ubuntu 14.04 Only)
sudo apt-get install dos2unix
sudo dpkg -i dos2unix_6.0.3-1_amd64.deb
(Linux EL5/6/7 Only)
yum install dos2unix
rpm -i dos2unixXXX.rpm
(Linux Ubuntu 14.04 Only)
sudo apt-get install freeglut3-dev OR;
sudo dpkg -i freeglut3-dev_2.8.1-1_amd64.deb
(Linux Ubuntu 16.04 Only)
sudo apt-get install freeglut3-dev OR;
sudo dpkg -i freeglut3-dev_2.8.1-2_amd64.deb
(Linux Ubuntu 20.04 Only)
sudo apt-get install freeglut3-dev OR;
sudo dpkg -i freeglut3-dev_2.8.1-3_amd64.deb
(Linux EL5 Only)
yum install freeglut-devel OR;
rpm - i freeglut-devel-2.4.0-7.1.el5.x86_64.rpm
(Linux EL6 Only)
yum install freeglut-devel OR;
rpm -i freeglut-devel-2.6.0-1.el6.x86_64.rpm
(Linux EL7 Only)
yum install freeglut-devel OR;
rpm -i freeglut-devel-2.8.1-3.el7.x86_64.rpm
(Windows XP Only);
unpack source code freeglut 2.4.0 (compiled).zip
copy freeglut.h to: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL\ (note: you'll have to create the GL folder)
copy freeglut_ext.h to: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL\
copy freeglut_std.h to: C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL\
copy freeglut.lib to: C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\
copy freeglut.dll to: C:\WINDOWS\system32\
(Windows 7/8 x86_64 Only);
unpack source code freeglut 2.6.0 (compiled) - 32bit.zip
copy freeglut.h to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL\ (note: you'll have to create the GL folder)
copy freeglut_ext.h to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL\
copy freeglut_std.h to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL\
copy freeglut.lib to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\
copy freeglut.dll to: C:\WINDOWS\SysWOW64 [or System32]
(Windows 10 x86_64 Only);
unpack source code freeglut 2.8.1 (compiled) - 32bit.zip
copy freeglut.h to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL\ (note: you'll have to create the GL folder)
copy freeglut_ext.h to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL\
copy freeglut_std.h to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\GL\
copy freeglut.lib to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\
copy freeglut.dll to: C:\WINDOWS\SysWOW64 [or System32]
Freeglut may be downloaded via;
- (Linux) distribution repository
- (Windows) Install Visual C++ 2010 (download VS2010Express1.iso from Microsoft.com) download freeglut-2.8.1.tar.gz from https://sourceforge.net/projects/freeglut/files/freeglut/2.8.1/ open freeglut-2.8.1/VisualStudio/2010/freeglut.vcxproj change to 'Release' Build Solution extract files from freeglut-2.8.1\VisualStudio\lib\x86 folder; copy freeglut.dll to freeglut 2.8.1 (compiled) - 32bit\System32 copy freeglut.lib to freeglut 2.8.1 (compiled) - 32bit\lib extract files from freeglut-2.6.0/Include/GL Copy 4 files to freeglut 2.8.1 (compiled) - 32bit\include\GL
(Linux Ubuntu 14.04 Only)
sudo apt-get install wordnet wordnet-dev wordnet-sense-index OR;
sudo dpkg -i wordnet_1%3a3.0-31_amd64.deb wordnet-base_1%3a3.0-31_all.deb wordnet-dev_1%3a3.0-31_amd64.deb wordnet-gui_1%3a3.0-31_amd64.deb wordnet-sense-index_1%3a3.0-31_all.deb
(Linux Ubuntu 16.04 Only)
sudo apt-get install wordnet [wordnet-sense-index] OR;
sudo dpkg -i wordnet_1%3a3.0-33_amd64.deb wordnet-base_1%3a3.0-33_all.deb wordnet-dev_1%3a3.0-33_amd64.deb wordnet-gui_1%3a3.0-33_amd64.deb [wordnet-sense-index_1%3a3.0-33_all.deb]
(Linux Ubuntu 20.04 Only)
sudo apt-get install wordnet [wordnet-sense-index] OR;
sudo dpkg -i wordnet_1%3a3.0-35_amd64.deb wordnet-base_1%3a3.0-35_all.deb wordnet-dev_1%3a3.0-35_amd64.deb wordnet-gui_1%3a3.0-35_amd64.deb [wordnet-sense-index_1%3a3.0-35_all.deb]
(Linux EL5 Only)
yum install wordnet-devel OR;
rpm -i wordnet-devel-3.0-13.el6.x86_64.rpm
(Linux EL6 Only)
yum install wordnet-devel OR;
rpm -i wordnet-devel-3.0-13.el5.x86_64.rpm
(Linux EL7 Only)
yum install wordnet OR;
rpm -i wordnet-3.0-13.el7.x86_64.rpm?
(Windows XP Only {UNTESTED})
Install WordNet_3.0_win32-setup.exe (from Google Code)
copy wn.lib from wn source project\Release to C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\
copy wn.h from wn source project to C:\Program Files\Microsoft Visual Studio 9.0\VC\Include\
ensure wn.lib is added to MS Visual Studio OR project - Linker - additional dependencies
(Windows 7/8/10 x86_64 Only)
Install WordNet_3.0_win32-setup.exe (from Google Code)
copy wn.lib from wn source project\Release to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib
copy wn.h from wn source project to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Include\
ensure wn.lib is added to MS Visual Studio OR project - Linker - additional dependencies
To Compile Wordnet 3.0 in Visual Studio 2010 (to create wn.lib);
Install WordNet_3.0_win32-setup.exe (from Google Code])
extract C:\Program Files (x86)\WordNet\3.0\src\wn source project.zip
Open wn.sln (convert to Visual C++ 2010 project)
change to 'Release'
wn project - properties - General - Common Language Runtime Support - No Common Language Runtime Support
wn project - properties - General - Configuration Type - Static Library (.lib)
Project - Build Solution
WordNet may be downloaded via;
- (Windows) Download WordNet 3.0 for Windows from http://code.google.com/p/wordnet3p0forwindows
Compile OpenGIA.exe
(Linux Only)
open SHAREDglobalDefs.hpp,
ensure #define LINUX is added
ensure only #define COMPILE_OPEN_GIA is uncommented
copy makefile.OpenGIA makefile
./clear.bat (rm *.o)
make
(Windows Only)
open SHAREDglobalDefs.hpp
ensure #define LINUX is commented out
ensure only #define COMPILE_OPEN_GIA is uncommented
Open GIA.sln
Build All
*Important preprocessor definitions to consider before compilation;*
#define LINUX