public class CollectionItem
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ClassifiedClass> |
classes |
protected java.lang.String |
text |
protected java.lang.String |
topClass |
Constructor and Description |
---|
CollectionItem() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ClassifiedClass> |
getClasses()
Gets the classes.
|
java.lang.String |
getText()
Gets the text.
|
java.lang.String |
getTopClass()
Gets the topClass.
|
protected java.lang.String text
@SerializedName(value="top_class") protected java.lang.String topClass
protected java.util.List<ClassifiedClass> classes
public java.lang.String getText()
The submitted phrase. The maximum length is 2048 characters.
public java.lang.String getTopClass()
The class with the highest confidence.
public java.util.List<ClassifiedClass> getClasses()
An array of up to ten class-confidence pairs sorted in descending order of confidence.