HomeSort by relevance Sort by last modified time
    Searched defs:key_ids (Results 1 - 10 of 10) sorted by null

  /external/marisa-trie/tests/
c-test.c 93 marisa_uint32 key_ids[8]; local
123 ASSERT(marisa_build(trie, keys, 5, NULL, NULL, key_ids,
130 ASSERT(key_ids[0] == 3);
131 ASSERT(key_ids[1] == 1);
132 ASSERT(key_ids[2] == 0);
133 ASSERT(key_ids[3] == 3);
134 ASSERT(key_ids[4] == 2);
138 key_ids[i], key_buf, sizeof(key_buf), &key_length) == MARISA_OK);
144 ASSERT(key_id == key_ids[i]);
148 ASSERT(key_id == key_ids[i])
    [all...]
trie-test.cc 11 FindCallback(std::vector<marisa::UInt32> *key_ids,
13 : key_ids_(key_ids), key_lengths_(key_lengths) {}
33 PredictCallback(std::vector<marisa::UInt32> *key_ids,
35 : key_ids_(key_ids), keys_(keys) {}
75 std::vector<marisa::UInt32> key_ids; local
76 trie.build(keys, &key_ids, 1 | MARISA_WITHOUT_TAIL | MARISA_LABEL_ORDER);
82 ASSERT(key_ids.size() == 5);
83 ASSERT(key_ids[0] == 3);
84 ASSERT(key_ids[1] == 1);
85 ASSERT(key_ids[2] == 0)
191 std::vector<marisa::UInt32> key_ids; local
417 std::vector<marisa::UInt32> key_ids; local
515 std::vector<marisa::UInt32> key_ids; local
579 std::vector<marisa::UInt32> key_ids; local
    [all...]
  /external/marisa-trie/v0_1_5/tests/
c-test.c 98 marisa_alpha_uint32 key_ids[8]; local
130 ASSERT(marisa_alpha_build(trie, keys, 5, NULL, NULL, key_ids,
138 ASSERT(key_ids[0] == 3);
139 ASSERT(key_ids[1] == 1);
140 ASSERT(key_ids[2] == 0);
141 ASSERT(key_ids[3] == 3);
142 ASSERT(key_ids[4] == 2);
146 key_ids[i], key_buf, sizeof(key_buf), &key_length) == MARISA_ALPHA_OK);
152 ASSERT(key_id == key_ids[i]);
156 ASSERT(key_id == key_ids[i])
    [all...]
trie-test.cc 11 FindCallback(std::vector<marisa_alpha::UInt32> *key_ids,
13 : key_ids_(key_ids), key_lengths_(key_lengths) {}
33 PredictCallback(std::vector<marisa_alpha::UInt32> *key_ids,
35 : key_ids_(key_ids), keys_(keys) {}
75 std::vector<marisa_alpha::UInt32> key_ids; local
76 trie.build(keys, &key_ids,
83 ASSERT(key_ids.size() == 5);
84 ASSERT(key_ids[0] == 3);
85 ASSERT(key_ids[1] == 1);
86 ASSERT(key_ids[2] == 0)
193 std::vector<marisa_alpha::UInt32> key_ids; local
435 std::vector<marisa_alpha::UInt32> key_ids; local
533 std::vector<marisa_alpha::UInt32> key_ids; local
597 std::vector<marisa_alpha::UInt32> key_ids; local
    [all...]
  /external/marisa-trie/tools/
marisa-predict.cc 62 std::vector<marisa::UInt32> key_ids; local
69 key_ids.clear();
74 str, &key_ids, &keys, max_num_results);
77 str, &key_ids, &keys, max_num_results);
85 std::cout << key_ids[i] << '\t' << keys[i] << '\t' << str << '\n';
marisa-find.cc 40 static std::vector<marisa::UInt32> key_ids; local
42 const std::size_t num_keys = trie.find(str, &key_ids, &lengths);
46 std::cout << key_ids[i] << '\t'; local
52 key_ids.clear();
marisa-benchmark.cc 174 marisa::Trie *trie, std::vector<marisa::UInt32> *key_ids) {
176 trie->build(keys, key_ids, num_tries
185 const std::vector<marisa::UInt32> &key_ids) {
188 for (std::size_t i = 0; i < key_ids.size(); ++i) {
190 trie.restore(key_ids[i], &key);
196 print_time_info(key_ids.size(), cl.elasped());
201 const std::vector<marisa::UInt32> &key_ids) {
205 if (key_id != key_ids[i]) {
215 const std::vector<marisa::UInt32> &key_ids) {
221 if ((num_keys == 0) || (found_key_ids.back() != key_ids[i]))
274 std::vector<marisa::UInt32> key_ids; local
    [all...]
  /external/marisa-trie/v0_1_5/tools/
marisa_alpha-predict.cc 62 std::vector<marisa_alpha::UInt32> key_ids; local
69 key_ids.clear();
74 str, &key_ids, &keys, max_num_results);
77 str, &key_ids, &keys, max_num_results);
85 std::cout << key_ids[i] << '\t' << keys[i] << '\t' << str << '\n';
marisa_alpha-find.cc 40 static std::vector<marisa_alpha::UInt32> key_ids; local
42 const std::size_t num_keys = trie.find(str, &key_ids, &lengths);
46 std::cout << key_ids[i] << '\t'; local
52 key_ids.clear();
marisa_alpha-benchmark.cc 174 marisa_alpha::Trie *trie, std::vector<marisa_alpha::UInt32> *key_ids) {
176 trie->build(keys, key_ids, num_tries
185 const std::vector<marisa_alpha::UInt32> &key_ids) {
188 for (std::size_t i = 0; i < key_ids.size(); ++i) {
190 trie.restore(key_ids[i], &key);
196 print_time_info(key_ids.size(), cl.elasped());
201 const std::vector<marisa_alpha::UInt32> &key_ids) {
205 if (key_id != key_ids[i]) {
215 const std::vector<marisa_alpha::UInt32> &key_ids) {
221 if ((num_keys == 0) || (found_key_ids.back() != key_ids[i]))
274 std::vector<marisa_alpha::UInt32> key_ids; local
    [all...]

Completed in 1467 milliseconds