-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
54 lines (33 loc) · 1.2 KB
/
readme.txt
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
-------------------------------------------------------------
buildindex.py : Build inverted index
Description:
Take corpus (eg. dev.docs), then output a index file in format
where each line follows
word doc_id tf
example:
informaiton MED-3140 10
meaning word information has tf 10 in document 3140.
To run buildindex.py
`python3 buildindex.py <inputfile> <indexfile>`
---------------------------------------------------------------
vsm.py : compute similarity between query and doc.
Description:
Take a index file and query file (e.g. dev.title.queries) and parameter file
and output a retrieval result file.
parameter file should be in following format
parameter_name options
weight_func tf, tf_log, tf_norm
documents_returns `<int>`
..... .....
retrival result file should be in following format
query-id document-id score
-----------------------------------------------------------------
>>> This, we can probably use galago eval function instead<<<
eval.py : evaluate performance of the model
Description:
Takes a retrieval result file and judgement file (e.g. qrel), and output a evaluation file
evaluation file format
query-id ap
.... ...
.... ...
map ...