-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
48 lines (31 loc) · 739 Bytes
/
run.sh
File metadata and controls
48 lines (31 loc) · 739 Bytes
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
# Creates all the index files
echo 'Running...'
mkdir Index
i=0
#Creates Index files for the files in Wiki_Split_Files
for file in `ls Wiki_Split_Files/`
do
./a.out Wiki_Split_Files/$file Index/$i
i=`expr $i + 1`
done
echo 'Created Indices'
#Merges all the index files
g++ merge.cpp
./a.out $i
echo 'Merged Indices'
#Creates Dense Index for Words
g++ dense_index.cpp
./a.out
echo 'Created Dense Index'
#Creates Dense Index for Titles
g++ dense_index_id_title.cpp
./a.out
echo 'Created Dense Title Index'
#Creates Secondary Index for Words
g++ secondary_index.cpp
./a.out
echo 'Created Secondary Index'
#Creates Secondary Index for Titles
g++ secondary_index_id_title.cpp
./a.out
echo 'Created Secondary Title Index'