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 Details

    • Classification

      public Classification()
  • Method Details

    • getClassifierId

      public String getClassifierId()
      Gets the classifierId.

      Unique identifier for this classifier.

      Returns:
      the classifierId
    • getUrl

      public String getUrl()
      Gets the url.

      Link to the classifier.

      Returns:
      the url
    • getText

      public String getText()
      Gets the text.

      The submitted phrase.

      Returns:
      the text
    • getTopClass

      public String getTopClass()
      Gets the topClass.

      The class with the highest confidence.

      Returns:
      the topClass
    • getClasses

      public List<ClassifiedClass> getClasses()
      Gets the classes.

      An array of up to ten class-confidence pairs sorted in descending order of confidence.

      Returns:
      the classes