java.lang.Object
com.ibm.watson.natural_language_understanding.v1.model.Features.Builder
Enclosing class:
Features

public static class Features.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public Features build()
      Builds a Features.
      Returns:
      the new Features instance
    • classifications

      public Features.Builder classifications​(ClassificationsOptions classifications)
      Set the classifications.
      Parameters:
      classifications - the classifications
      Returns:
      the Features builder
    • concepts

      public Features.Builder concepts​(ConceptsOptions concepts)
      Set the concepts.
      Parameters:
      concepts - the concepts
      Returns:
      the Features builder
    • emotion

      public Features.Builder emotion​(EmotionOptions emotion)
      Set the emotion.
      Parameters:
      emotion - the emotion
      Returns:
      the Features builder
    • entities

      public Features.Builder entities​(EntitiesOptions entities)
      Set the entities.
      Parameters:
      entities - the entities
      Returns:
      the Features builder
    • keywords

      public Features.Builder keywords​(KeywordsOptions keywords)
      Set the keywords.
      Parameters:
      keywords - the keywords
      Returns:
      the Features builder
    • metadata

      public Features.Builder metadata​(Map<String,​Object> metadata)
      Set the metadata.
      Parameters:
      metadata - the metadata
      Returns:
      the Features builder
    • relations

      public Features.Builder relations​(RelationsOptions relations)
      Set the relations.
      Parameters:
      relations - the relations
      Returns:
      the Features builder
    • semanticRoles

      public Features.Builder semanticRoles​(SemanticRolesOptions semanticRoles)
      Set the semanticRoles.
      Parameters:
      semanticRoles - the semanticRoles
      Returns:
      the Features builder
    • sentiment

      public Features.Builder sentiment​(SentimentOptions sentiment)
      Set the sentiment.
      Parameters:
      sentiment - the sentiment
      Returns:
      the Features builder
    • summarization

      public Features.Builder summarization​(SummarizationOptions summarization)
      Set the summarization.
      Parameters:
      summarization - the summarization
      Returns:
      the Features builder
    • categories

      public Features.Builder categories​(CategoriesOptions categories)
      Set the categories.
      Parameters:
      categories - the categories
      Returns:
      the Features builder
    • syntax

      public Features.Builder syntax​(SyntaxOptions syntax)
      Set the syntax.
      Parameters:
      syntax - the syntax
      Returns:
      the Features builder