public final class AnalyzedTokenInfo extends Object
Constructor and Description |
---|
AnalyzedTokenInfo(String token,
int startOffset,
int endOffset,
int position)
Creates an instance of AnalyzedTokenInfo class.
|
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)
token
- the token value to set.startOffset
- the startOffset value to set.endOffset
- the endOffset value to set.position
- the position value to set.public String getToken()
public int getStartOffset()
public int getEndOffset()
public int getPosition()
Copyright © 2021 Microsoft Corporation. All rights reserved.