public class Keyword extends AlchemyLanguageGenericModel
Constructor and Description |
---|
Keyword() |
Modifier and Type | Method and Description |
---|---|
KnowledgeGraph |
getKnowledgeGraph()
Gets the knowledge graph.
|
Double |
getRelevance()
Gets the relevance.
|
Sentiment |
getSentiment()
Gets the sentiment.
|
String |
getText()
Gets the text.
|
void |
setKnowledgeGraph(KnowledgeGraph knowledgeGraph)
Sets the knowledge graph.
|
void |
setRelevance(Double relevance)
Sets the relevance.
|
void |
setSentiment(Sentiment sentiment)
Sets the sentiment.
|
void |
setText(String text)
Sets the text.
|
getLanguage, getUrl, setLanguage, setUrl
getTotalTransactions, setTotalTransactions
equals, hashCode, toString
public KnowledgeGraph getKnowledgeGraph()
public Double getRelevance()
public Sentiment getSentiment()
public String getText()
public void setKnowledgeGraph(KnowledgeGraph knowledgeGraph)
knowledgeGraph
- the knowledgeGraph to setpublic void setRelevance(Double relevance)
relevance
- The relevancepublic void setSentiment(Sentiment sentiment)
sentiment
- The sentimentpublic void setText(String text)
text
- The textCopyright © 2015–2016 IBM Watson. All rights reserved.