public class SynonymOptions extends GenericModel
ToneAnalyzer.getSynonyms(SynonymOptions)
methodConstructor and Description |
---|
SynonymOptions() |
Modifier and Type | Method and Description |
---|---|
SynonymOptions |
context(List<String> context)
With context.
|
List<String> |
getContext()
Gets the context.
|
Integer |
getHops()
Gets the hops.
|
Integer |
getIndex()
Gets the index.
|
Integer |
getLimit()
Gets the limit.
|
List<String> |
getTraits()
Gets the traits.
|
List<String> |
getWords()
Gets the words.
|
SynonymOptions |
hops(Integer hops)
With hops.
|
SynonymOptions |
index(Integer index)
With index.
|
SynonymOptions |
limit(Integer limit)
With limit.
|
SynonymOptions |
traits(List<String> traits)
With traits.
|
SynonymOptions |
wordList(List<String> words)
With words list
|
SynonymOptions |
words(String... words)
new words("dog", "cat", "cow")
|
equals, hashCode, toString
public SynonymOptions words(String... words)
new words("dog", "cat", "cow")
words
- A list of words for which related words are to be looked up. Normally only one
word is given, but multiple words can be passed.public SynonymOptions wordList(List<String> words)
words
- the wordspublic SynonymOptions traits(List<String> traits)
traits
- the traitspublic Integer getLimit()
public SynonymOptions limit(Integer limit)
limit
- the limitpublic Integer getHops()
public SynonymOptions hops(Integer hops)
hops
- the hopspublic SynonymOptions context(List<String> context)
context
- the contextpublic Integer getIndex()
public SynonymOptions index(Integer index)
index
- the indexCopyright © 2015–2016. All rights reserved.