com.languagecomputer.api
Interface QuestionAnswerPairWebService

All Superinterfaces:
BaseWebService
All Known Implementing Classes:
QuestionAnswerPairWebServiceImpl

public interface QuestionAnswerPairWebService
extends BaseWebService

Interface for question/answer pair annotation web service. The service takes a document and identifies questions for potential answers in the document text.

Since:
1.0
Author:
Kirk Roberts

Method Summary
 String process(String sessionID, String document, String format)
          Annotates the provided document with question/answer pairs.
 
Methods inherited from interface com.languagecomputer.api.BaseWebService
registerSession, unregisterSession
 

Method Detail

process

String process(String sessionID,
               String document,
               String format)
               throws Exception
Annotates the provided document with question/answer pairs.

Parameters:
sessionID - The unique identifier String for the session for this operation.
document - The document in the format described in the format parameter.
format - The format in which the annotations should be returned. Defaults to XML.
Returns:
The identified question/answer pairs in the format requested.
Throws:
Exception - If there was an error processing the document.


Copyright © 2009. All Rights Reserved.