com.languagecomputer.api
Interface QuestionAnsweringService

All Superinterfaces:
Service
All Known Implementing Classes:
DefaultQuestionAnsweringMetaService, QuestionAnsweringServiceWebClient

public interface QuestionAnsweringService
extends Service

A Service that finds Answers 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.

Since:
1.0
Author:
Kirk Roberts
See Also:
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

getAnswers

List<Answer> getAnswers(String question)
Finds answers to the given question.

Parameters:
question - The String question to find answers to. Cannot be null.
Returns:
A List of Answers to the question.

getAnswers

List<Answer> getAnswers(Query query)
Finds answers to the given Query (optional operation). This method may optionally be implemented in order to allow the caller to override specific elements of the Query.

Parameters:
query - The Query to find answers to. Cannot be null.
Returns:
A List of Answers to the question.


Copyright © 2009. All Rights Reserved.