org.ow2.weblab.service.gate
Class GateService
java.lang.Object
org.ow2.weblab.service.gate.GateService
- All Implemented Interfaces:
- org.weblab_project.services.analyser.Analyser
public class GateService
- extends java.lang.Object
- implements org.weblab_project.services.analyser.Analyser
This class is a WebService calling Gate with different configurations.
It initializes gate once with a gapp configuration and implements a corpus pipeline
- Author:
- khelif, ymombrun
|
Constructor Summary |
GateService(java.lang.String defaultGappFile,
java.lang.String serviceURI)
This is the same constructors than calling the three argument one with "plugins" as latest argument. |
GateService(java.lang.String defaultGappFile,
java.lang.String serviceURI,
java.lang.String pluginsPath)
|
|
Method Summary |
protected java.util.List<org.weblab_project.core.model.text.Text> |
checkParameters(org.weblab_project.services.analyser.types.ProcessArgs args)
|
org.weblab_project.services.analyser.types.ProcessReturn |
process(org.weblab_project.services.analyser.types.ProcessArgs args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GateService
public GateService(java.lang.String defaultGappFile,
java.lang.String serviceURI)
- This is the same constructors than calling the three argument one with "plugins" as latest argument.
- Parameters:
defaultGappFile - The path to the default gapp file to be used.serviceURI - The URI of the service to be added on each annotation created. If null no isProducedBy statement will be added.
GateService
public GateService(java.lang.String defaultGappFile,
java.lang.String serviceURI,
java.lang.String pluginsPath)
- Parameters:
defaultGappFile - The path to the default gapp file to be used.serviceURI - The URI of the service to be added on each annotation created. If null no isProducedBy statement will be added.pluginsPath - The path to the plugin directory.
process
public org.weblab_project.services.analyser.types.ProcessReturn process(org.weblab_project.services.analyser.types.ProcessArgs args)
throws org.weblab_project.services.analyser.ProcessException
- Specified by:
process in interface org.weblab_project.services.analyser.Analyser
- Throws:
org.weblab_project.services.analyser.ProcessException
checkParameters
protected java.util.List<org.weblab_project.core.model.text.Text> checkParameters(org.weblab_project.services.analyser.types.ProcessArgs args)
throws org.weblab_project.services.analyser.ProcessException
- Parameters:
args - The ProcessArgs
- Returns:
- The list of Text contained by the Resource in args.
- Throws:
org.weblab_project.services.analyser.ProcessException - For any reason preventing the retrieval of text unit to be done.
Copyright © 2004-2010. All Rights Reserved.