Debian Codegraph @

test/command/suite/tokenizers/document_vector_bm25/token_column_different_lexicon.expected

raw
1 table_create Memos TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Memos content COLUMN_SCALAR Text
4 [[0,0.0,0.0],true]
5 load --table Memos
6 [
7 {"content": "a b c a"},
8 {"content": "c b c"},
9 {"content": "b b a"},
10 {"content": "a c c"},
11 {"content": "a"}
12 ]
13 [[0,0.0,0.0],5]
14 table_create Tokens TABLE_PAT_KEY ShortText --normalizer NormalizerNFKC121 --default_tokenizer TokenNgram
15 [[0,0.0,0.0],true]
16 column_create Tokens memos_content COLUMN_INDEX|WITH_POSITION Memos content
17 [[0,0.0,0.0],true]
18 table_create Terms TABLE_PAT_KEY ShortText --normalizer NormalizerNFKC121 --default_tokenizer TokenNgram
19 [[0,0.0,0.0],true]
20 column_create Memos content_tokens COLUMN_VECTOR Terms content
21 [[0,0.0,0.0],true]
22 table_create DocumentVectorBM25 TABLE_HASH_KEY Tokens --default_tokenizer 'TokenDocumentVectorBM25("index_column", "memos_content", "df_column", "df")'
23 [[0,0.0,0.0],true]
24 column_create DocumentVectorBM25 df COLUMN_SCALAR UInt32
25 [[0,0.0,0.0],true]
26 log_level --level debug
27 [[0,0.0,0.0],true]
28 column_create Memos content_feature COLUMN_VECTOR|WITH_WEIGHT|WEIGHT_FLOAT32 DocumentVectorBM25 content
29 [[0,0.0,0.0],true]
30 log_level --level notice
31 [[0,0.0,0.0],true]
32 select Memos
33 [
34 [
35 0,
36 0.0,
37 0.0
38 ],
39 [
40 [
41 [
42 5
43 ],
44 [
45 [
46 "_id",
47 "UInt32"
48 ],
49 [
50 "content",
51 "Text"
52 ],
53 [
54 "content_feature",
55 "DocumentVectorBM25"
56 ],
57 [
58 "content_tokens",
59 "Terms"
60 ]
61 ],
62 [
63 1,
64 "a b c a",
65 {
66 "a": 0.5095787,
67 "b": 0.6084117,
68 "c": 0.6084117
69 },
70 [
71 "a",
72 "b",
73 "c",
74 "a"
75 ]
76 ],
77 [
78 2,
79 "c b c",
80 {
81 "c": 0.8342565,
82 "b": 0.5513765
83 },
84 [
85 "c",
86 "b",
87 "c"
88 ]
89 ],
90 [
91 3,
92 "b b a",
93 {
94 "b": 0.9430448,
95 "a": 0.3326656
96 },
97 [
98 "b",
99 "b",
100 "a"
101 ]
102 ],
103 [
104 4,
105 "a c c",
106 {
107 "a": 0.3326656,
108 "c": 0.9430448
109 },
110 [
111 "a",
112 "c",
113 "c"
114 ]
115 ],
116 [
117 5,
118 "a",
119 {
120 "a": 1.0
121 },
122 [
123 "a"
124 ]
125 ]
126 ]
127 ]
128 ]
129 select DocumentVectorBM25 --output_columns _id,_key,df
130 [
131 [
132 0,
133 0.0,
134 0.0
135 ],
136 [
137 [
138 [
139 3
140 ],
141 [
142 [
143 "_id",
144 "UInt32"
145 ],
146 [
147 "_key",
148 "ShortText"
149 ],
150 [
151 "df",
152 "UInt32"
153 ]
154 ],
155 [
156 1,
157 "a",
158 4
159 ],
160 [
161 2,
162 "b",
163 3
164 ],
165 [
166 3,
167 "c",
168 3
169 ]
170 ]
171 ]
172 ]