Home
last modified time | relevance | path

Searched refs:max_num_wordpieces_in_window (Results 1 – 2 of 2) sorted by relevance

/external/libtextclassifier/native/annotator/pod_ner/
Dutils.cc96 WordpieceSpan ExpandWindowAndAlign(int max_num_wordpieces_in_window, in ExpandWindowAndAlign() argument
99 if (wordpiece_span_to_expand.length() >= max_num_wordpieces_in_window) { in ExpandWindowAndAlign()
103 0, wordpiece_span_to_expand.begin - ((max_num_wordpieces_in_window - in ExpandWindowAndAlign()
106 if ((window_first_wordpiece_index + max_num_wordpieces_in_window) > in ExpandWindowAndAlign()
109 std::max(num_wordpieces - max_num_wordpieces_in_window, 0); in ExpandWindowAndAlign()
113 std::min(window_first_wordpiece_index + max_num_wordpieces_in_window, in ExpandWindowAndAlign()
120 int max_num_wordpieces_in_window) { in FindWordpiecesWindowAroundSpan() argument
124 max_num_wordpieces_in_window, num_wordpieces, wordpiece_span_to_expand); in FindWordpiecesWindowAroundSpan()
Dutils.h50 int max_num_wordpieces_in_window);
53 WordpieceSpan ExpandWindowAndAlign(int max_num_wordpieces_in_window,