public class Answer extends Object
| Constructor and Description |
|---|
Answer() |
| Modifier and Type | Method and Description |
|---|---|
double |
getConfidence()
Gets a decimal percentage that represents the confidence that Watson has
in this answer.
|
int |
getId()
Gets an integer that uniquely identifies an answer
in the context of the question.,
|
String |
getPipeline()
Gets the pipeline.
|
String |
getText()
Gets a string that contains an answer to the question in the form of
text.
|
void |
setConfidence(double confidence)
Sets a decimal percentage that represents the confidence that Watson has in this answer.
|
void |
setId(int id)
Sets an integer that uniquely identifies an answer in the context of the
question.
|
void |
setPipeline(String pipeline)
Sets the pipeline.
|
void |
setText(String text)
Sets a string that contains an answer to the question in the form of
text.
|
String |
toString() |
public double getConfidence()
public int getId()
public String getPipeline()
public String getText()
public void setConfidence(double confidence)
confidence - The confidencepublic void setId(int id)
id - The idpublic void setPipeline(String pipeline)
pipeline - The pipelinepublic void setText(String text)
text - The textCopyright © 2015. All rights reserved.