Home
last modified time | relevance | path

Searched refs:GlobalReplace (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/lite/models/smartreply/ops/
Dnormalize.cc65 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/
Dpredictor.cc36 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/
Dgen_op_registration.cc26 RE2::GlobalReplace(&method, "([a-z])([A-Z])", "\\1_\\2"); in NormalizeCustomOpName()
/external/tensorflow/tensorflow/core/kernels/
Dregex_replace_op.cc52 RE2::GlobalReplace(&output_flat(i), match, rewrite); in InternalCompute()
/external/pcre/pcrecpp/include/
Dpcrecpp.h610 int GlobalReplace(const StringPiece& rewrite,
/external/pcre/pcrecpp/
Dpcrecpp_unittest.cc343 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()
Dpcrecpp.cc184 int RE::GlobalReplace(const StringPiece& rewrite, in GlobalReplace() function in pcrecpp::RE
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_utils.cc71 RE2::GlobalReplace(&out, oldsub, newsub); in StringReplace()
/external/tensorflow/tensorflow/lite/toco/
Ddump_graphviz.cc117 RE2::GlobalReplace(&s, R"CODE(_\d+)CODE", ""); in HashStringToColor()
/external/tensorflow/tensorflow/compiler/aot/tests/
Dtfcompile_test.cc624 RE2::GlobalReplace(&hlo_profile_as_string, "(%[a-zA-Z0-9]*)[.0-9]*", "\\1"); in TEST()