Class Classification
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_classifier.v1.model.Classification
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Classification
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Response from the classifier for a phrase.
-
Constructor Summary
Constructors Constructor Description Classification()
-
Method Summary
Modifier and Type Method Description List<ClassifiedClass>
getClasses()
Gets the classes.String
getClassifierId()
Gets the classifierId.String
getText()
Gets the text.String
getTopClass()
Gets the topClass.String
getUrl()
Gets the url.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Classification
public Classification()
-
-
Method Details
-
getClassifierId
Gets the classifierId.Unique identifier for this classifier.
- Returns:
- the classifierId
-
getUrl
Gets the url.Link to the classifier.
- Returns:
- the url
-
getText
Gets the text.The submitted phrase.
- Returns:
- the text
-
getTopClass
Gets the topClass.The class with the highest confidence.
- Returns:
- the topClass
-
getClasses
Gets the classes.An array of up to ten class-confidence pairs sorted in descending order of confidence.
- Returns:
- the classes
-