-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun-eval-posneg.sh
executable file
·55 lines (36 loc) · 1.05 KB
/
run-eval-posneg.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Perform a multi-run evaluation on a specific directory.
source config
maxRunCount=3
#outBase="reports/sampled/onlyout"
#$inBase="data-latc"
#while read line; do
# line=`echo $line | grep -v "^\s*#"`
# if [ -z "$line" ]; then
# continue
# fi
n=150
type="$1"
if [ -z "$type" ]; then
echo "Please specify positive or negative"
exit
fi
for dir in `find "$posNegRepo" -maxdepth 1 -mindepth 1 -type d`; do
for (( i=1; i<=$maxRunCount; ++i )); do
file="$dir/$type.nt"
endpointsFile="$dir/endpoints.txt"
outDir="$dir/$type/$i"
cmd="java -Xmx4096M -server -d64 -jar target/qa_for_lod-0.0.1-SNAPSHOT-jar-with-dependencies.jar -onlyout -nogui -triples $n $file -out $outDir -endpoints $endpointsFile -seed $i"
echo "$cmd"
echo ""
echo ""
echo "Processing:"
echo "---------------------------------------------"
echo "Type : $type"
echo "Source Directory: $dir"
echo "Output Directory: $outDir"
echo "Seed : $i"
echo "Endpoint : $endpointsFile"
$cmd
done
done