Repositories » TXT0
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Trivial

Changeset d830396677ec

Parent d556e745d230

by Rup Palchowdhury

Changes to 2 files · Browse files at d830396677ec Showing diff from parent d556e745d230 Diff from another changeset...

Change 1 of 1 Show Entire File test/​common_words.txt Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@@ -0,0 +1,119 @@
+a +able +about +across +after +all +almost +also +am +among +an +and +any +are +as +at +be +because +been +but +by +can +cannot +could +dear +did +do +does +either +else +ever +every +for +from +get +got +had +has +have +he +her +hers +him +his +how +however +i +if +in +into +is +it +its +just +least +let +like +likely +may +me +might +most +must +my +neither +no +nor +not +of +off +often +on +only +or +other +our +own +rather +said +say +says +she +should +since +so +some +than +that +the +their +them +then +there +these +they +this +tis +to +too +twas +us +wants +was +we +were +what +when +where +which +while +who +whom +why +will +with +would +yet +you +your
Change 1 of 1 Show Entire File txt2trecrun.awk Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -0,0 +1,27 @@
+# Converts the ranked search result of TXT to TREC run format. +# usage: awk -f txt2trecrun.awk <txt-res-file +BEGIN { + flag = 1 + i = 0 +} +{ + if (flag) { + b = $1 + flag = 0; + } + if ($1 != b) { + for (j = 0; j < i; j++) { + n = split(line[j], a); + print a[1] " Q0 " a[2] " " j " " a[3] " ." + } + i = 0 + b = $1 + } + line[i++] = $0 +} +END { + for (j = 0; j < i; j++) { + n = split(line[j], a); + print a[1] " Q0 " a[2] " " j " " a[3] " ." + } +}