Class Expansion

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

public class Expansion
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An expansion definition. Each object respresents one set of expandable strings. For example, you could have expansions for the word `hot` in one object, and expansions for the word `cold` in another.
  • Method Details

    • newBuilder

      public Expansion.Builder newBuilder()
      New builder.
      Returns:
      a Expansion builder
    • inputTerms

      public List<String> inputTerms()
      Gets the inputTerms.

      A list of terms that will be expanded for this expansion. If specified, only the items in this list are expanded.

      Returns:
      the inputTerms
    • expandedTerms

      public List<String> expandedTerms()
      Gets the expandedTerms.

      A list of terms that this expansion will be expanded to. If specified without **input_terms**, it also functions as the input term list.

      Returns:
      the expandedTerms