about summary refs log tree commit diff
path: root/sourcecodes/run.sh
blob: 12bab53f52593f4cac63f0fcd8e1bcfe5b0b8ecd (plain)
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
#!/bin/bash
#d=`dirname $0`
#ess=1
#DIR="$d/data/$1"
#DIR_1="$d/data/$1/"
cd /tmp/bnw


mkdir -p /tmp/bnw/$1

maxparent=$2
k=$3
THR=$4

./network_score /tmp/bnw/$1continuous_input.txt /tmp/bnw/$1ban.txt /tmp/bnw/$1white.txt $maxparent /tmp/bnw/$1

./k-best/src/data2netk_poster.sh /tmp/bnw/$1continuous_input.txt /tmp/bnw/$1 $k $maxparent

./structure /tmp/bnw/$1continuous_input.txt /tmp/bnw/$1/postProbEachEdge.txt /tmp/bnw/$1structure_input_temp.txt /tmp/bnw/$1structure_input.txt $THR

rm -r /tmp/bnw/$1

if [ $k = 1 ]
then
    rm -r /tmp/bnw/$1structure_input_temp.txt
fi