-
Notifications
You must be signed in to change notification settings - Fork 19
/
run-crfsuite.sh
executable file
·27 lines (24 loc) · 1.12 KB
/
run-crfsuite.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name=$1
embedding=$2
mkdir -p vector-experiments
echo "[INFO] ------------------Begin---------------"
if [ "$embedding" == "Google" ]; then
file=embeddings/google-news/GoogleNews-vectors-negative300.bin.gz
elif [ "$embedding" == "Amazon" ]; then
file=embeddings/amazon/vectors-$3.txt
else
file=embeddings/senna
fi
echo "[INFO] ------------------Begin of Embedding: $embedding---------------"
make $name-features EMBEDDIING_FILE=$file type=$embedding
make run-crfsuite dataset=$name type=bin > vector-experiments/$name-bin-$embedding.txt
make run-crfsuite dataset=$name type=con > vector-experiments/$name-con-$embedding.txt
make run-crfsuite dataset=$name type=bc > vector-experiments/$name-bc-$embedding.txt
echo "[INFO] Binary features: $embedding "
tail -14 vector-experiments/$name-bin-$embedding.txt
echo "[INFO] Continuous features: $embedding"
tail -14 vector-experiments/$name-con-$embedding.txt
echo "[INFO] Binary-Continuous features: $embedding"
tail -14 vector-experiments/$name-bc-$embedding.txt
echo "[INFO] ------------------End of Embedding: $embedding---------------"
echo "[INFO] ------------------END---------------"