org.ow2.weblab.service.gate
Class GateHelper

java.lang.Object
  extended by org.ow2.weblab.service.gate.GateHelper

public class GateHelper
extends java.lang.Object

This class contains useful static methods for the gate-extraction project.

Author:
ymombrun
Date:
2008-05-06

Field Summary
static java.lang.String GATE_TEMP_ANNOTATION_META
          The URI of the predicate for meta data that refines types.
static java.lang.String GATE_TEMP_ANNOTATION_TYPE
          The URI of the predicate for types.
 
Constructor Summary
GateHelper()
           
 
Method Summary
static void linkGateAnnotsToText(org.weblab_project.core.model.text.Text text, gate.AnnotationSet annots, java.lang.String generatorURI)
          Annotate text with each annotation in annotation set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GATE_TEMP_ANNOTATION_TYPE

public static final java.lang.String GATE_TEMP_ANNOTATION_TYPE
The URI of the predicate for types. Annotation are created on a temporary namespace. The reason is that Gate let you to write you own plugins, and rules, enabling the creation a your own Types. Since this service shall be working in various applications, having various business ontologies, the annotation format is a temporary one. Best practice is to write a service, that will be called after this to do the mapping between those temporary annotations and good annotation using the specified ontology.

See Also:
Constant Field Values

GATE_TEMP_ANNOTATION_META

public static final java.lang.String GATE_TEMP_ANNOTATION_META
The URI of the predicate for meta data that refines types.

See Also:
Constant Field Values
Constructor Detail

GateHelper

public GateHelper()
Method Detail

linkGateAnnotsToText

public static void linkGateAnnotsToText(org.weblab_project.core.model.text.Text text,
                                        gate.AnnotationSet annots,
                                        java.lang.String generatorURI)
Annotate text with each annotation in annotation set. At the end, sorts the segments list to ease further process.

Parameters:
text - The WebLab Text to be annotated
annots - The Gate annotation set to be used to annotate text
generatorURI - The URI of the service. This will be used to annotate the annotation with a produce from statement.


Copyright © 2004-2010. All Rights Reserved.