Commit fdc532db by Long Thanh Duong

Remove Download script for CRF-Suite

Add pip installation for python crfsuite
parent a07f7f30
......@@ -43,39 +43,7 @@ if [[ ! -d $senna_folder_name ]]; then
rm ${senna_file_name}
fi
# Download and Install Liblbfgs
lbfgs_file_name=$(curl -s 'http://www.chokkan.org/software/liblbfgs/' | grep -o 'liblbfgs-.*\.tar.gz' | head -n1)
[[ ${lbfgs_file_name=} =~ (.+)\.tar.gz ]]
lbfgs_folder_name=${BASH_REMATCH[1]}
if [[ ! -d $lbfgs_folder_name ]]; then
wget -nv "https://github.com/downloads/chokkan/liblbfgs/$lbfgs_file_name"
tar -xvzf ${lbfgs_file_name}
rm ${lbfgs_file_name}
fi
cd $lbfgs_folder_name
./configure --prefix=$HOME/third/liblbfgs
make
make install
cd ..
# Download and install crfsuite
crfsuite_file_name=$(curl -s 'http://www.chokkan.org/software/crfsuite/' | grep -o 'crfsuite-.*\.tar.gz' | head -n1)
[[ ${crfsuite_file_name=} =~ (.+)\.tar.gz ]]
crfsuite_folder_name=${BASH_REMATCH[1]}
if [[ ! -d $crfsuite_folder_name ]]; then
wget -nv "https://github.com/downloads/chokkan/crfsuite/$crfsuite_file_name"
tar -xvzf ${crfsuite_file_name}
rm ${crfsuite_file_name}
fi
cd $crfsuite_folder_name
./configure --prefix=$HOME/third/crfsuite --with-liblbfgs=$HOME/third/liblbfgs
make
make install
cd ..
# Setup the Enviroment variable
export CRFSUITE=$(pwd)'/crfsuite/bin'
export STANFORD_PARSER=$(pwd)'/stanford-parser'
export STANFORD_MODELS=$(pwd)'/stanford-parser'
export STANFORD_POSTAGGER=$(pwd)'/stanford-postagger'
......
......@@ -6,3 +6,4 @@ numpy>=1.8.0
scipy>=0.13.2
matplotlib>=1.3.1
scikit-learn>=0.14.1
python-crfuite>=0.8.2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment