-
Notifications
You must be signed in to change notification settings - Fork 0
/
Output_Inverse_Index_TF_IDF
96 lines (61 loc) · 2.15 KB
/
Output_Inverse_Index_TF_IDF
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
----Inverse Index-----
is 3 ['001', '002', '003']
weather 1 ['004']
data 2 ['001', '003']
there 1 ['002']
hadoop 2 ['001']
how 1 ['004']
does 1 ['004']
storm 2 ['001', '002']
new 1 ['003']
oil 1 ['003']
big 3 ['001', '002']
coming 1 ['002']
world 2 ['001', '005']
weekend 2 ['002', '004']
by 1 ['001']
look 1 ['004']
a 1 ['002']
like 1 ['004']
this 2 ['002', '004']
taking 1 ['001']
the 3 ['001', '003', '004']
hello 1 ['005']
----TF-IDF RELEVENCE SCORE---
003 HITS FREQ TF IDF TF-IDF
new 1 1 0.2 0.698970004336 0.139794000867
is 3 1 0.2 0.221848749616 0.0443697499233
oil 1 1 0.2 0.698970004336 0.139794000867
data 2 1 0.2 0.397940008672 0.0795880017344
the 3 1 0.2 0.221848749616 0.0443697499233
002 HITS FREQ TF IDF TF-IDF
a 1 1 0.125 0.698970004336 0.087371250542
this 2 1 0.125 0.397940008672 0.049742501084
big 2 1 0.125 0.397940008672 0.049742501084
is 3 1 0.125 0.221848749616 0.027731093702
there 1 1 0.125 0.698970004336 0.087371250542
storm 2 1 0.125 0.397940008672 0.049742501084
coming 1 1 0.125 0.698970004336 0.087371250542
weekend 2 1 0.125 0.397940008672 0.049742501084
001 HITS FREQ TF IDF TF-IDF
big 2 2 0.181818181818 0.397940008672 0.0723527288495
is 3 1 0.0909090909091 0.221848749616 0.0201680681469
hadoop 1 2 0.181818181818 0.698970004336 0.127085455334
storm 2 1 0.0909090909091 0.397940008672 0.0361763644247
world 2 1 0.0909090909091 0.397940008672 0.0361763644247
taking 1 1 0.0909090909091 0.698970004336 0.0635427276669
the 3 1 0.0909090909091 0.221848749616 0.0201680681469
data 2 1 0.0909090909091 0.397940008672 0.0361763644247
by 1 1 0.0909090909091 0.698970004336 0.0635427276669
005 HITS FREQ TF IDF TF-IDF
world 2 1 0.5 0.397940008672 0.198970004336
hello 1 1 0.5 0.698970004336 0.349485002168
004 HITS FREQ TF IDF TF-IDF
like 1 1 0.125 0.698970004336 0.087371250542
this 2 1 0.125 0.397940008672 0.049742501084
how 1 1 0.125 0.698970004336 0.087371250542
does 1 1 0.125 0.698970004336 0.087371250542
weather 1 1 0.125 0.698970004336 0.087371250542
the 3 1 0.125 0.221848749616 0.027731093702
weekend 2 1 0.125 0.397940008672 0.049742501084
look 1 1 0.125 0.698970004336 0.087371250542