com.languagecomputer.api
Class AnswerExtractionWebServiceImpl
java.lang.Object
com.languagecomputer.api.BaseWebServiceImpl
com.languagecomputer.api.AnswerExtractionWebServiceImpl
- All Implemented Interfaces:
- AnswerExtractionWebService, BaseWebService
public class AnswerExtractionWebServiceImpl
- extends BaseWebServiceImpl
- implements AnswerExtractionWebService
Implementation of AnswerExtractionWebService
.
- Since:
- 1.0
- Author:
- Kirk Roberts
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnswerExtractionWebServiceImpl
public AnswerExtractionWebServiceImpl(SessionManager sessionManager)
- Creates a new
AnswerExtractionWebServiceImpl
using the given
sessionManager.
- Parameters:
sessionManager
- The SessionManager
to use for Session
control.
extractAnswers
public String extractAnswers(String sessionID,
String query,
String queryResults,
String format)
throws Exception
- Extracts answers to the query from a set of query results.
- Specified by:
extractAnswers
in interface AnswerExtractionWebService
- Parameters:
sessionID
- The unique identifier String
for the session
for this operation.query
- The query in the format described in the format
parameter.queryResults
- The query result (documents) in the format described in
the format.format
- The format in which the queryResults and
query are in and which the answers should be returned.
Defaults to XML
.
- Returns:
- The extracted answers for the query from the given
queryResults.
- Throws:
Exception
- If there was an error extracting answers.
Copyright © 2009. All Rights Reserved.