|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QuestionAnsweringService
A Service
that finds Answer
s to a question or Query
.
This may be implemented as a meta-service, using the other question answering
services. Alternatively, this may act as a standalone service, especially if
it does not have the same pipeline structure as the meta-service.
QuestionProcessingService
,
DocumentRetrievalService
,
AnswerExtractionService
,
AnswerFusionService
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. |
Methods inherited from interface com.languagecomputer.api.Service |
---|
getName, setSession |
Method Detail |
---|
List<Answer> getAnswers(String question)
question
- The String
question to find answers to.
Cannot be null
.
List
of Answer
s to the question.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
.
query
- The Query
to find answers to. Cannot be
null
.
List
of Answer
s to the question.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |