public final class AnalyzedTokenInfo extends Object
| Constructor and Description |
|---|
AnalyzedTokenInfo(String token,
int startOffset,
int endOffset,
int position)
Constructor of
AnalyzedTokenInfo. |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndOffset()
Get the endOffset property: The index of the last character of the token
in the input text.
|
int |
getPosition()
Get the position property: The position of the token in the input text
relative to other tokens.
|
int |
getStartOffset()
Get the startOffset property: The index of the first character of the
token in the input text.
|
String |
getToken()
Get the token property: The token returned by the analyzer.
|
public AnalyzedTokenInfo(String token, int startOffset, int endOffset, int position)
AnalyzedTokenInfo.token - The token returned by the analyzer.startOffset - The index of the first character of the token in the input text.endOffset - The index of the last character of the token in the input text.position - The position of the token in the input text relative to other tokens.
The first token in the input text has position 0, the next has position
1, and so on. Depending on the analyzer used, some tokens might have the
same position, for example if they are synonyms of each other.public String getToken()
public int getStartOffset()
public int getEndOffset()
public int getPosition()
Copyright © 2020 Microsoft Corporation. All rights reserved.