public class TokenResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
TokenResult.PartOfSpeech
The part of speech of the token. 
 | 
| Constructor and Description | 
|---|
TokenResult()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getLemma()
Gets the lemma. 
 | 
List<Long> | 
getLocation()
Gets the location. 
 | 
String | 
getPartOfSpeech()
Gets the partOfSpeech. 
 | 
String | 
getText()
Gets the text. 
 | 
public String getText()
The token as it appears in the analyzed text.
public String getPartOfSpeech()
The part of speech of the token. For more information about the values, see [Universal Dependencies POS tags](https://universaldependencies.org/u/pos/).
public List<Long> getLocation()
Character offsets indicating the beginning and end of the token in the analyzed text.
public String getLemma()
The [lemma](https://wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
Copyright © 2021 IBM Cloud. All rights reserved.