public class RankedAnswer extends GenericModel
RankedAnswer class used by Ranking.| Constructor and Description |
|---|
RankedAnswer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnswerID()
Returns the answer ID.
|
double |
getConfidence()
Gets the confidence that Watson has in this answer's ranking.
|
double |
getScore()
Returns the score of the candidate answer.
|
void |
setAnswerID(String answerID)
Sets the answer ID.
|
void |
setConfidence(double confidence)
Sets the confidence that Watson has in this answer's ranking Higher values represent higher
confidences.
|
void |
setScore(double score)
Sets the score of the candidate answer.
|
equals, hashCode, toStringpublic String getAnswerID()
public void setAnswerID(String answerID)
answerID - the new answerIDpublic double getScore()
public void setScore(double score)
score - the score to setpublic double getConfidence()
public void setConfidence(double confidence)
confidence - the new confidenceCopyright © 2015. All rights reserved.