Home
last modified time | relevance | path

Searched refs:span_end (Results 1 – 9 of 9) sorted by relevance

/external/libtextclassifier/native/annotator/
Dfeature-processor.cc144 const auto [span_begin, span_end] = in StripTokensFromOtherLines()
146 StripTokensFromOtherLines(context_unicode, span_begin, span_end, span, in StripTokensFromOtherLines()
153 const UnicodeText::const_iterator& span_end, const CodepointSpan& span, in StripTokensFromOtherLines() argument
160 if (line.first <= span_begin && line.second >= span_end) { in StripTokensFromOtherLines()
300 UnicodeText::const_iterator span_end = token_right_unicode.end(); in SpanToLabel() local
305 token_right_unicode.begin(), span_end, in SpanToLabel()
504 const UnicodeText::const_iterator& span_end, in CountIgnoredSpanBoundaryCodepoints() argument
506 if (span_start == span_end) { in CountIgnoredSpanBoundaryCodepoints()
514 it_last = span_end; in CountIgnoredSpanBoundaryCodepoints()
519 it = span_end; in CountIgnoredSpanBoundaryCodepoints()
[all …]
Dstrip-unpaired-brackets.cc28 const UnicodeText::const_iterator& span_end, CodepointSpan span, in StripUnpairedBrackets() argument
30 if (span_begin == span_end || !span.IsValid() || span.IsEmpty()) { in StripUnpairedBrackets()
35 const UnicodeText::const_iterator end = span_end; in StripUnpairedBrackets()
Dfeature-processor.h157 const UnicodeText::const_iterator& span_end,
212 const UnicodeText::const_iterator& span_end,
263 const UnicodeText::const_iterator& span_end,
280 const UnicodeText::const_iterator& span_end,
Dstrip-unpaired-brackets.h32 const UnicodeText::const_iterator& span_end, CodepointSpan span,
Dannotator.cc1428 const auto [span_begin, span_end] = in ModelClassifyText()
1431 detected_text_language_tags, span_begin, span_end, in ModelClassifyText()
1441 const UnicodeText::const_iterator& span_end, const UnicodeTextRange* line, in ModelClassifyText() argument
1473 context_unicode, span_begin, span_end, selection_indices, in ModelClassifyText()
1576 const int digit_count = std::count_if(span_begin, span_end, IsDigit); in ModelClassifyText()
Dannotator.h321 const UnicodeText::const_iterator& span_end, const UnicodeTextRange* line,
/external/python/cpython3/Lib/zoneinfo/
D_common.py98 span_end = abbr_chars.find(b"\x00", idx)
99 abbr_vals[idx] = abbr_chars[idx:span_end].decode()
/external/libtextclassifier/native/utils/utf8/
Dunicodetext.cc237 auto span_end = span_begin; in UTF8Substring() local
238 std::advance(span_end, end_codepoint - begin_codepoint); in UTF8Substring()
239 return UTF8Substring(span_begin, span_end); in UTF8Substring()
/external/tensorflow/tensorflow/core/kernels/image/
Dscale_and_translate_op.cc94 int64 span_end = in ComputeSpansCore() local
97 span_end = Clamp(static_cast<int64>(0), input_size - 1, span_end) + 1; in ComputeSpansCore()
98 const int this_span_size = span_end - span_start; in ComputeSpansCore()
105 for (int source = span_start; source < span_end; ++source) { in ComputeSpansCore()