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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Expansion.Builder
Builder. -
Method Summary
Modifier and Type Method Description List<String>
expandedTerms()
Gets the expandedTerms.List<String>
inputTerms()
Gets the inputTerms.Expansion.Builder
newBuilder()
New builder.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a Expansion builder
-
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
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
-