|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.weblab.service.gate.converter.GateToWebLab
public class GateToWebLab
This class is the basic implementation GateConverter. It enables the creation of simple (and sometimes stupid) instances of NamedEntities in each Text section of the input WebLab Resource. At initialisation, it loads some properties from the file PROPERTIES_FILE_NAME:
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
GateToWebLab()
The default constructors Reads PROPERTIES_FILE_NAME to set every internal properties. |
|
| Method Summary | |
|---|---|
void |
convertInformation(gate.Corpus corpusGate,
org.weblab_project.core.model.Resource resource,
java.util.Map<gate.Document,org.weblab_project.core.model.text.Text> gateDocsAndText)
This is the only method of the interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public GateToWebLab()
| Method Detail |
|---|
public void convertInformation(gate.Corpus corpusGate,
org.weblab_project.core.model.Resource resource,
java.util.Map<gate.Document,org.weblab_project.core.model.text.Text> gateDocsAndText)
GateConverter
convertInformation 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||