HTTPS SSH
====================================================
 COMMANDS FOR MINT 17 (Ubuntu 14.04)
====================================================

git clone https://bitbucket.org/robvanderg/sem15
cd sem15
mkdir data
cd data
wget http://alt.qcri.org/semeval2015/task1/data/uploads/test.data
------ Contact organizers for data
mv ~/Downloads/test.label .
mv ~/Downloads/train.data .
mv ~/Downloads/dev.data .
cat train.data dev.data > all.data
cd ../src
python prepare_working.py
python prepare_test.py
cd ../

====================================================
 CANDC tools
====================================================

sudo apt-get install subversion
svn co http://svn.ask.it.usyd.edu.au/candc/trunk candc
first enter wrong password, then authenticate
cd candc
wget http://svn.ask.it.usyd.edu.au/download/candc/models-1.02.tgz --http-user=[user] --http-password=[password]
tar -xvzf models-1.02.tgz 
ln -s Makefile.unix Makefile
sudo apt-get install swi-prolog

----patch nutcracker
sed -i 's/.*findall(isnota(A,B),isnota(A,B),ISNOTA)/% findall(isnota(A,B),isnota(A,B),ISNOTA)/g' src/prolog/nutcracker/miniWordNet.pl 
sed -i 's/.*findall(.*isnota(A,B),(isa(A,C), concept(\[s(\_,T,\_)|\_\],A),/  findall(isnota(A,B),(isa(A,C), concept([s(_,T,_)|_],A),/g' src/prolog/nutcracker/miniWordNet.pl
sed -i 's/.*isa(B,C), concept(\[s(\_,T,\_)|\_\],B),/    isa(B,C), concept(\[s(\_,T,\_)|\_\],B),/g' src/prolog/nutcracker/miniWordNet.pl 
sed -i 's/.*A<B       ),ISNOTA),/    A<B       ),ISNOTA),/g' src/prolog/nutcracker/miniWordNet.pl 
sed -i 's/^SICK.*/SICK\=.\/..\/working/g' src/scripts/boxer/sick/_runSICK 
sed -i 's/\#init/init' src/scripts/boxer/sick/_runSICK 

make bin/nc
make bin/boxer
make bin/tokkie
make ext/bin/bliksem
make ext/bin/mace
make ext/bin/CPULimitedRun
cd ext/otter-3.3f
make all
cd ../
wget http://downloads.sourceforge.net/project/gsoap2/gSOAP/gsoap_2.8.17.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fgsoap2%2Ffiles%2FgSOAP%2F&ts=1394902772&use_mirror=garr -O gsoap_2.8.17.zip
unzip gsoap_2.8.17.zip
cd gsoap-2.8/
./configure --prefix=/home/rob/candc/ext/
sudo apt-get install byacc
sudo apt-get install flex
make
make install
cp gsoap/bin/linux386/soapcpp2 ../bin
cd ../../
make soap
cp ext/otter-3.3f/bin/mace2 ext/bin/mace
cp ext/otter-3.3f/bin/otter ext/bin/otter

----paradox 
cp ~/Downloads/paradox3 ext/bin/paradox
chmod +x ext/bin/paradox
http://packages.ubuntu.com/quantal/libgmp3c2
wget http://nl.archive.ubuntu.com/ubuntu/pool/universe/g/gmp4/libgmp3c2_4.3.2+dfsg-2ubuntu1_amd64.deb
sudo dpkg -i libgmp3c2_4.3.2+dfsg-2ubuntu1_amd64.deb 
----
----vampire
cp ~/Downloads/vampire ext/bin/vampire
chmod +x ext/bin/vampire
----

src/scripts/boxer/sick/_preparePAR
src/scripts/boxer/sick/_runSICK
cp working/sickrun.BoxerHumanTest ../src/sickrun.BoxerXL
sed -i 's/^SICK.*/SICK\=.\/..\/test/g' src/scripts/boxer/sick/_runSICK
src/scripts/boxer/sick/_runSICK 


====================================================
 Python script for model
====================================================
cd ../../sem15

sudo apt-get install python-nltk 
sudo apt-get install python-requests
sudo apt-get install python-numpy
sudo apt-get install python-scipy
git clone https://github.com/scikit-learn/scikit-learn.git
cd scikit-learn
python setup.py build
sudo python setup.py install
cd ../src
wget http://clic.cimec.unitn.it/composes/materials/EN-wform.w.5.cbow.neg10.400.subsmpl.txt.gz
gunzip EN-wform.w.5.cbow.neg10.400.subsmpl.txt.gz
wget http://alt.qcri.org/semeval2015/task1/data/uploads/pit2015_checkformat.py