Searched refs:GlobalReplace (Results 1 – 10 of 10) sorted by relevance
/external/tensorflow/tensorflow/lite/models/smartreply/ops/ |
D | normalize.cc | 65 RE2::GlobalReplace(&result, kPunctuationsRegex, ""); in Eval() 66 RE2::GlobalReplace(&result, "\\s('t|'nt|n't|'d|'ll|'s|'m|'ve|'re)([\\s,;:/])", in Eval() 68 RE2::GlobalReplace(&result, "\\s('t|'nt|n't|'d|'ll|'s|'m|'ve|'re)$", "\\1"); in Eval() 71 RE2::GlobalReplace(&result, iter->first, iter->second); in Eval() 75 RE2::GlobalReplace(&result, "([?])+", "\\1"); in Eval() 76 RE2::GlobalReplace(&result, "([!])+", "\\1"); in Eval() 77 RE2::GlobalReplace(&result, "([^?!]+)([?!])", "\\1 \\2 "); in Eval() 78 RE2::GlobalReplace(&result, "([?!])([?!])", "\\1 \\2"); in Eval() 80 RE2::GlobalReplace(&result, "[\\s,:;\\-&'\"]+$", ""); in Eval() 81 RE2::GlobalReplace(&result, "^[\\s,:;\\-&'\"]+", ""); in Eval()
|
/external/tensorflow/tensorflow/lite/models/smartreply/ |
D | predictor.cc | 36 RE2::GlobalReplace(&result, "([?.!,])+", " \\1"); in SplitSentence() 37 RE2::GlobalReplace(&result, "([?.!,])+\\s+", "\\1\t"); in SplitSentence() 38 RE2::GlobalReplace(&result, "[ ]+", " "); in SplitSentence() 39 RE2::GlobalReplace(&result, "\t+$", ""); in SplitSentence()
|
/external/tensorflow/tensorflow/lite/tools/ |
D | gen_op_registration.cc | 26 RE2::GlobalReplace(&method, "([a-z])([A-Z])", "\\1_\\2"); in NormalizeCustomOpName()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | regex_replace_op.cc | 52 RE2::GlobalReplace(&output_flat(i), match, rewrite); in InternalCompute()
|
/external/pcre/pcrecpp/include/ |
D | pcrecpp.h | 610 int GlobalReplace(const StringPiece& rewrite,
|
/external/pcre/pcrecpp/ |
D | pcrecpp_unittest.cc | 343 const int replace_count = re.GlobalReplace(t->rewrite, &all); in TestReplace() 354 CHECK_EQ(re.GlobalReplace("bb", &all), 9); in TestReplace() 362 CHECK_EQ(re.GlobalReplace("bb", &all), 9); in TestReplace()
|
D | pcrecpp.cc | 184 int RE::GlobalReplace(const StringPiece& rewrite, in GlobalReplace() function in pcrecpp::RE
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_utils.cc | 71 RE2::GlobalReplace(&out, oldsub, newsub); in StringReplace()
|
/external/tensorflow/tensorflow/lite/toco/ |
D | dump_graphviz.cc | 117 RE2::GlobalReplace(&s, R"CODE(_\d+)CODE", ""); in HashStringToColor()
|
/external/tensorflow/tensorflow/compiler/aot/tests/ |
D | tfcompile_test.cc | 624 RE2::GlobalReplace(&hlo_profile_as_string, "(%[a-zA-Z0-9]*)[.0-9]*", "\\1"); in TEST()
|