/third_party/ninja/src/ |
D | edit_distance_test.cc | 20 EXPECT_EQ(5, EditDistance("", "ninja")); in TEST() 21 EXPECT_EQ(5, EditDistance("ninja", "")); in TEST() 22 EXPECT_EQ(0, EditDistance("", "")); in TEST() 29 EditDistance("abcdefghijklmnop", "ponmlkjihgfedcba", in TEST() 36 EXPECT_EQ(1, EditDistance("ninja", "njnja", allow_replacements)); in TEST() 37 EXPECT_EQ(1, EditDistance("njnja", "ninja", allow_replacements)); in TEST() 40 EXPECT_EQ(2, EditDistance("ninja", "njnja", allow_replacements)); in TEST() 41 EXPECT_EQ(2, EditDistance("njnja", "ninja", allow_replacements)); in TEST() 45 EXPECT_EQ(0, EditDistance("browser_tests", "browser_tests")); in TEST() 46 EXPECT_EQ(1, EditDistance("browser_test", "browser_tests")); in TEST() [all …]
|
D | edit_distance.h | 20 int EditDistance(const StringPiece& s1,
|
D | edit_distance.cc | 20 int EditDistance(const StringPiece& s1, in EditDistance() function
|
D | state.cc | 127 int distance = EditDistance( in SpellcheckNode()
|
D | util.cc | 402 int distance = EditDistance(*i, text, kAllowReplacements, in SpellcheckStringV()
|
/third_party/gn/src/gn/ |
D | string_utils_unittest.cc | 120 TEST(StringUtils, EditDistance) { in TEST() argument 121 EXPECT_EQ(3u, EditDistance("doom melon", "dune melon", 100)); in TEST() 122 EXPECT_EQ(2u, EditDistance("doom melon", "dune melon", 1)); in TEST() 124 EXPECT_EQ(2u, EditDistance("ab", "ba", 100)); in TEST() 125 EXPECT_EQ(2u, EditDistance("ba", "ab", 100)); in TEST() 127 EXPECT_EQ(2u, EditDistance("ananas", "banana", 100)); in TEST() 128 EXPECT_EQ(2u, EditDistance("banana", "ananas", 100)); in TEST() 130 EXPECT_EQ(2u, EditDistance("unclear", "nuclear", 100)); in TEST() 131 EXPECT_EQ(2u, EditDistance("nuclear", "unclear", 100)); in TEST() 133 EXPECT_EQ(3u, EditDistance("chrome", "chromium", 100)); in TEST() [all …]
|
D | string_utils.h | 43 size_t EditDistance(std::string_view s1,
|
D | string_utils.cc | 287 size_t EditDistance(std::string_view s1, in EditDistance() function 336 size_t distance = EditDistance(word, text, kMaxValidEditDistance); in SpellcheckString()
|
/third_party/mindspore/tests/st/ops/ascend/ |
D | test_edit_distance.py | 26 class EditDistance(nn.Cell): class 28 super(EditDistance, self).__init__() 29 self.edit_distance = P.EditDistance(normalize) 46 edit_distance = EditDistance(hypothesis_shape, truth_shape)
|
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/ |
D | array_ops_declare.cc | 100 INPUT_MAP(EditDistance) = {{1, INPUT_DESC(hypothesis_indices)}, {2, INPUT_DESC(hypothesis_values)}, 103 ATTR_MAP(EditDistance) = {{"normalize", ATTR_DESC(normalize, AnyTraits<bool>())}}; 104 OUTPUT_MAP(EditDistance) = {{0, OUTPUT_DESC(output)}}; 105 REG_ADPT_DESC(EditDistance, kNameEditDistance, ADPT_DESC(EditDistance))
|
D | array_ops_declare.h | 61 DECLARE_OP_ADAPTER(EditDistance) 62 DECLARE_OP_USE_OUTPUT(EditDistance)
|
/third_party/mindspore/mindspore/ops/operations/ |
D | __init__.py | 32 … Squeeze, StridedSlice, Tile, TensorScatterUpdate, TensorScatterAdd, EditDistance, Sort,
|
D | array_ops.py | 5646 class EditDistance(PrimitiveWithInfer): class
|
/third_party/mindspore/tests/ut/python/ops/ |
D | test_ops.py | 1006 class EditDistance(nn.Cell): class 1008 super(EditDistance, self).__init__() 1009 self.edit_distance = P.EditDistance(normalize) 2559 'block': EditDistance(Tensor(np.array([1, 1, 2]).astype(np.int64)),
|
/third_party/icu/icu4j/perf-tests/data/collation/ |
D | thesis.txt | 1565 EditDistance 1731 public class EditDistance implements Comparer
|
/third_party/googletest/googletest/test/ |
D | gtest_unittest.cc | 3539 TEST(EditDistance, TestSuites) { in TEST() argument
|
/third_party/mindspore/config/ |
D | op_info.config | 10 {"op_name": "EditDistance", "inputs": [{"index": 0, "name": "hypothesis_indices", "param_type": "re…
|