|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.languagecomputer.api.DefaultQuestionAnsweringMetaService
public class DefaultQuestionAnsweringMetaService
Meta-QuestionAnsweringService that is implemented in terms of the
other question-answering services: QuestionProcessingService,
DocumentRetrievalService, AnswerExtractionService, and
AnswerFusionService.
QuestionProcessingService,
DocumentRetrievalService,
AnswerExtractionService,
AnswerFusionService| Constructor Summary | |
|---|---|
DefaultQuestionAnsweringMetaService()
|
|
| Method Summary | |
|---|---|
List<Answer> |
getAnswers(Query query)
Finds answers to the given Query (optional operation). |
List<Answer> |
getAnswers(String question)
Finds answers to the given question. |
String |
getName()
Returns QuestionAnsweringService. |
void |
setSession(Session session)
Sets the Session this Service instance is associated
with. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultQuestionAnsweringMetaService()
| Method Detail |
|---|
public String getName()
QuestionAnsweringService.
getName in interface Servicepublic void setSession(Session session)
Session this Service instance is associated
with. Properties can be retrieved with Session.getProperties().
setSession in interface Servicepublic List<Answer> getAnswers(String question)
getAnswers in interface QuestionAnsweringServicequestion - The String question to find answers to.
Cannot be null.
List of Answers to the question.getAnswers(Query)public List<Answer> getAnswers(Query query)
Query (optional operation). This method
may optionally be implemented in order to allow the caller to override
specific elements of the Query.
getAnswers in interface QuestionAnsweringServicequery - The Query to find answers to. Cannot be
null.
List of Answers to the question.
IllegalArgumentException - If the Query has no natural
language representation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||