public class GateToWebLab extends java.lang.Object implements GateConverter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INCLUDE_FEATURES_PROPERTY
Name of the property that defines whether or not to include features in addition to annotation type.
|
static java.lang.String |
INCLUDE_IDS_PROPERTY
Name of the property that defines whether or not to include id's properties in output annotations.
|
static java.lang.String |
MAX_ANNOTS_PROPERTY
Name of the property that contains the max number of annotation to be extracted on a single MediaUnit.
|
static java.lang.String |
PROPERTIES_FILE_NAME
Name of the property file to be loaded.
|
static java.lang.String |
SERVICE_URI_PROPERTY
Name of the property that contains the URI of the service to be used if the created annotation shall contains a
isProducedBy statement.
|
static java.lang.String |
SKIPPED_ANNOTATIONS_PROPERTY
Name of the property that contains the list of properties to be excluded from the conversion.
|
static java.lang.String |
SKIPPED_FEATURES_PROPERTY
Name of the property that contains the list of features to be excluded from the conversion.
|
| Constructor and Description |
|---|
GateToWebLab()
The default constructors
Reads PROPERTIES_FILE_NAME to set every internal properties.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final java.lang.String PROPERTIES_FILE_NAME
public static final java.lang.String SKIPPED_ANNOTATIONS_PROPERTY
public static final java.lang.String SKIPPED_FEATURES_PROPERTY
public static final java.lang.String SERVICE_URI_PROPERTY
public static final java.lang.String MAX_ANNOTS_PROPERTY
public static final java.lang.String INCLUDE_FEATURES_PROPERTY
public static final java.lang.String INCLUDE_IDS_PROPERTY
public GateToWebLab()
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)
GateConverterconvertInformation in interface GateConvertercorpusGate - 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.public void setServiceURI(java.lang.String serviceURI)
setServiceURI in interface GateConverterserviceURI - The URI of the service to be added in each annotation created.Copyright © 2004-2012. All Rights Reserved.