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