Debian Codegraph @

test/command/suite/tokenizers/document_vector_tf_idf/reindex.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 DocumentVectorTFIDF TABLE_HASH_KEY Tokens --default_tokenizer 'TokenDocumentVectorTFIDF("index_column", "memos_content", "df_column", "df")'
19 [[0,0.0,0.0],true]
20 column_create DocumentVectorTFIDF df COLUMN_SCALAR UInt32
21 [[0,0.0,0.0],true]
22 column_create Memos content_feature COLUMN_VECTOR|WITH_WEIGHT|WEIGHT_FLOAT32 DocumentVectorTFIDF content
23 [[0,0.0,0.0],true]
24 truncate DocumentVectorTFIDF
25 [[0,0.0,0.0],true]
26 truncate Memos.content_feature
27 [[0,0.0,0.0],true]
28 reindex Memos.content_feature
29 [[0,0.0,0.0],true]
30 select Memos
31 [
32 [
33 0,
34 0.0,
35 0.0
36 ],
37 [
38 [
39 [
40 5
41 ],
42 [
43 [
44 "_id",
45 "UInt32"
46 ],
47 [
48 "content",
49 "Text"
50 ],
51 [
52 "content_feature",
53 "DocumentVectorTFIDF"
54 ]
55 ],
56 [
57 1,
58 "a b c a",
59 {
60 "a": 0.5255685,
61 "b": 0.601572,
62 "c": 0.601572
63 }
64 ],
65 [
66 2,
67 "c b c",
68 {
69 "c": 0.8944272,
70 "b": 0.4472136
71 }
72 ],
73 [
74 3,
75 "b b a",
76 {
77 "b": 0.9769684,
78 "a": 0.2133842
79 }
80 ],
81 [
82 4,
83 "a c c",
84 {
85 "a": 0.2133842,
86 "c": 0.9769684
87 }
88 ],
89 [
90 5,
91 "a",
92 {
93 "a": 1.0
94 }
95 ]
96 ]
97 ]
98 ]
99 select DocumentVectorTFIDF --output_columns _id,_key,df
100 [
101 [
102 0,
103 0.0,
104 0.0
105 ],
106 [
107 [
108 [
109 3
110 ],
111 [
112 [
113 "_id",
114 "UInt32"
115 ],
116 [
117 "_key",
118 "ShortText"
119 ],
120 [
121 "df",
122 "UInt32"
123 ]
124 ],
125 [
126 1,
127 "a",
128 4
129 ],
130 [
131 2,
132 "b",
133 3
134 ],
135 [
136 3,
137 "c",
138 3
139 ]
140 ]
141 ]
142 ]