Class TrainingExample

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.TrainingExample
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class TrainingExample
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Object containing example response details for a training query.
  • Method Details

    • newBuilder

      public TrainingExample.Builder newBuilder()
      New builder.
      Returns:
      a TrainingExample builder
    • documentId

      public String documentId()
      Gets the documentId.

      The document ID associated with this training example.

      Returns:
      the documentId
    • collectionId

      public String collectionId()
      Gets the collectionId.

      The collection ID associated with this training example.

      Returns:
      the collectionId
    • relevance

      public Long relevance()
      Gets the relevance.

      The relevance of the training example.

      Returns:
      the relevance
    • created

      public Date created()
      Gets the created.

      The date and time the example was created.

      Returns:
      the created
    • updated

      public Date updated()
      Gets the updated.

      The date and time the example was updated.

      Returns:
      the updated