-
Notifications
You must be signed in to change notification settings - Fork 0
/
topkFreqDiv.sh
54 lines (50 loc) · 1.12 KB
/
topkFreqDiv.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
54
#parse the parameters
while test $# -gt 0; do
case "$1" in
-h|--help)
echo "help"
echo " "
echo "-h, --help show brief help"
echo "-f, graph filename (*.lg)"
echo " "
exit 0
;;
-f)
shift
if test $# -gt 0; then
file=$1
fi
shift
;;
-cf)
shift
if test $# -gt 0; then
corefile=$1
fi
shift
;;
-k)
shift
if test $# -gt 0; then
k=$1
fi
shift
;;
-t)
shift
if test $# -gt 0; then
t=$1
fi
shift
;;
*)
break
;;
esac
done
#printing some output to the users
echo "Dataset: $file"
#Running PatKG, need modify folder location: datasetFolder
echo "Start extracting top-k frequent patterns ...";
java -cp ./PatKG/bin mainMine.PatKGmine filename=$file coreFileName=$corefile datasetFolder=/home/jianzeng/dataSets/ k=$k t=$t
echo "Mining Finished."