org.ow2.weblab.service.gate.converter
Class GateToWookie

java.lang.Object
  extended by org.ow2.weblab.service.gate.converter.GateToWookie
All Implemented Interfaces:
GateConverter

public class GateToWookie
extends java.lang.Object
implements GateConverter

This class is the basic implementation GateConverter. It enables the creation of WOOKIE instances of NamedEntities in each Text section of the input WebLab Resource.

Author:
lserrano
Date:
2011-03-16

Constructor Summary
GateToWookie()
           
 
Method Summary
 void convertInformation(gate.Corpus corpusGate, org.ow2.weblab.core.model.Resource resource, java.util.Map<gate.Document,org.ow2.weblab.core.model.Text> gateDocsAndText)
          This is the only method of the interface.
 void setServiceURI(java.lang.String serviceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GateToWookie

public GateToWookie()
Method Detail

convertInformation

public void convertInformation(gate.Corpus corpusGate,
                               org.ow2.weblab.core.model.Resource resource,
                               java.util.Map<gate.Document,org.ow2.weblab.core.model.Text> gateDocsAndText)
Description copied from interface: GateConverter
This is the only method of the interface. It has to iterate on the entries in the Map to pass information from the key to the value.

Specified by:
convertInformation in interface GateConverter
Parameters:
corpusGate - A Gate Corpus that has been processed by the controller.
resource - The top level Resource. May be used to annotate it, or not.
gateDocsAndText - A map that associate to every gate.Document in the Corpus a WebLab Text to whom pass the annotation.

setServiceURI

public void setServiceURI(java.lang.String serviceURI)
Specified by:
setServiceURI in interface GateConverter
Parameters:
serviceURI - The URI of the service to be added in each annotation created.


Copyright © 2004-2011. All Rights Reserved.