-
Notifications
You must be signed in to change notification settings - Fork 8
/
ablation.sh
executable file
·39 lines (30 loc) · 1.36 KB
/
ablation.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
#!/bin/sh
#
# The script to perform ablation runs on the 4 wikification dataset
#
#
cpath="target/wikifier-3.0-jar-with-dependencies.jar"
datafolder="data/WikificationACL2011Data"
configsFolder="configs/Ablation"
mkdir -p output/Wikipedia
mkdir -p output/AQUAINT
mkdir -p output/MSNBC
mkdir -p output/ACE
#for configFile in `find $configsFolder -type f -printf "%f\n"`
# NOTE: difference from "FULL" and "COREF" is if it uses INFERENCE
for configFile in "FULL.xml"
do
configpath="$configsFolder/$configFile"
echo "Using config file $configpath"
outDir="output/AblationResults/$configFile/"
mkdir -p $outDir
command="java -Xmx10g -jar $cpath -referenceAssistant"
echo $command
# $command $datafolder/WikipediaSample/ProblemsTest/ $datafolder/WikipediaSample/RawTextsTest/ output/Wikipedia/ $configpath > $outDir/WikiTest #Wikipedia
#$command $datafolder/AQUAINT/Problems/ $datafolder/AQUAINT/RawTexts/ output/AQUAINT/ $configpath > $outDir/AQUAINT #AQUAINT
$command $datafolder/MSNBC/Problems/ $datafolder/MSNBC/RawTextsSimpleChars/ output/MSNBC/ $configpath &> $outDir/MSNBC #MSNBC
# $command $datafolder/ACE2004_Coref_Turking/Dev/ProblemsNoTranscripts/ $datafolder/ACE2004_Coref_Turking/Dev/RawTextsNoTranscripts output/ACE/ $configpath &> $outDir/Ace #ACE
echo "Waiting for $configFile to finish"
wait
echo "Finished $configFile"
done