public class QuestionAndAnswer extends WatsonService
| Constructor and Description |
|---|
QuestionAndAnswer()
Instantiates a new question and answer.
|
| Modifier and Type | Method and Description |
|---|---|
WatsonAnswer |
ask(Question question)
Interprets and answers user questions.
|
WatsonAnswer |
ask(String question)
Interprets and answers user questions.
|
void |
setDataset(QuestionAndAnswerDataset dataset)
Sets the dataset.
|
String |
toString() |
execute, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getGson, getHttpClient, setApiKey, setEndPoint, setUsernameAndPasswordpublic QuestionAndAnswer()
public WatsonAnswer ask(String question)
question - the string questionpublic WatsonAnswer ask(Question question)
question - the questionpublic void setDataset(QuestionAndAnswerDataset dataset)
dataset - the new datasetpublic String toString()
toString in class WatsonServiceCopyright © 2015. All rights reserved.