Class UpdateSentimentModelOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.UpdateSentimentModelOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class UpdateSentimentModelOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The updateSentimentModel options.
  • Method Details

    • newBuilder

      New builder.
      Returns:
      a UpdateSentimentModelOptions builder
    • modelId

      public String modelId()
      Gets the modelId.

      ID of the model.

      Returns:
      the modelId
    • language

      public String language()
      Gets the language.

      The 2-letter language code of this model.

      Returns:
      the language
    • trainingData

      public InputStream trainingData()
      Gets the trainingData.

      Training data in CSV format. For more information, see [Sentiment training data requirements](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-custom-sentiment#sentiment-training-data-requirements).

      Returns:
      the trainingData
    • name

      public String name()
      Gets the name.

      An optional name for the model.

      Returns:
      the name
    • userMetadata

      public Map<String,​Object> userMetadata()
      Gets the userMetadata.

      An optional map of metadata key-value pairs to store with this model.

      Returns:
      the userMetadata
    • description

      public String description()
      Gets the description.

      An optional description of the model.

      Returns:
      the description
    • modelVersion

      public String modelVersion()
      Gets the modelVersion.

      An optional version string.

      Returns:
      the modelVersion
    • workspaceId

      public String workspaceId()
      Gets the workspaceId.

      ID of the Watson Knowledge Studio workspace that deployed this model to Natural Language Understanding.

      Returns:
      the workspaceId
    • versionDescription

      public String versionDescription()
      Gets the versionDescription.

      The description of the version.

      Returns:
      the versionDescription