gate.creole
Class OntologyAwareTransducer
java.lang.Object
|
+--gate.util.AbstractFeatureBearer
|
+--gate.creole.AbstractResource
|
+--gate.creole.AbstractProcessingResource
|
+--gate.creole.AbstractLanguageAnalyser
|
+--gate.creole.Transducer
|
+--gate.creole.OntologyAwareTransducer
- All Implemented Interfaces:
- ANNIEConstants, Executable, FeatureBearer, LanguageAnalyser, NameBearer, ProcessingResource, Resource, Serializable
- public class OntologyAwareTransducer
- extends Transducer
An ontology aware JAPE transducer. Adds the #ontology
member to the
Transducer
class.
- See Also:
- Serialized Form
Fields inherited from interface gate.creole.ANNIEConstants |
ANNOTATION_COREF_FEATURE_NAME, DATE_ANNOTATION_TYPE, DOCUMENT_COREF_FEATURE_NAME, LOCATION_ANNOTATION_TYPE, LOOKUP_ANNOTATION_TYPE, LOOKUP_CLASS_FEATURE_NAME, LOOKUP_MAJOR_TYPE_FEATURE_NAME, LOOKUP_MINOR_TYPE_FEATURE_NAME, LOOKUP_ONTOLOGY_FEATURE_NAME, MONEY_ANNOTATION_TYPE, ORGANIZATION_ANNOTATION_TYPE, PERSON_ANNOTATION_TYPE, PERSON_GENDER_FEATURE_NAME, PR_NAMES, SENTENCE_ANNOTATION_TYPE, SPACE_TOKEN_ANNOTATION_TYPE, TOKEN_ANNOTATION_TYPE, TOKEN_CATEGORY_FEATURE_NAME, TOKEN_KIND_FEATURE_NAME, TOKEN_LENGTH_FEATURE_NAME, TOKEN_ORTH_FEATURE_NAME, TOKEN_STRING_FEATURE_NAME |
Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
OntologyAwareTransducer
public OntologyAwareTransducer()
getOntology
public Ontology getOntology()
- Gets the ontology used by this transducer.
- Returns:
- an
Ontology
value.
setOntology
public void setOntology(Ontology ontology)
- Sets the ontology used by this transducer.
- Parameters:
ontology
- an Ontology
value.
init
public Resource init()
throws ResourceInstantiationException
- Description copied from class:
Transducer
- This method is the one responsible for initialising the transducer. It
assumes that all the needed parameters have been already set using the
appropiate setXXX() methods.
- Specified by:
init
in interface Resource
- Overrides:
init
in class Transducer
- Returns:
- a reference to this
ResourceInstantiationException