Home
last modified time | relevance | path

Searched defs:TokenSpan (Results 1 – 1 of 1) sorted by relevance

/external/libtextclassifier/native/annotator/
Dtypes.h144 struct TokenSpan { struct
145 static const TokenSpan kInvalid; argument
147 TokenSpan() : first(kInvalidIndex), second(kInvalidIndex) {} in TokenSpan() argument
149 TokenSpan(TokenIndex start, TokenIndex end) : first(start), second(end) {} in TokenSpan() argument
152 explicit TokenSpan(int token_index) in TokenSpan() function
155 TokenSpan& operator=(const TokenSpan& other) = default; argument
179 TokenSpan Expand(int num_tokens_left, int num_tokens_right) const { in Expand() argument
187 // Pretty-printing function for TokenSpan. argument