gate.creole.gazetteer
Class AbstractOntoGazetteer
java.lang.Object
gate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractProcessingResource
gate.creole.AbstractLanguageAnalyser
gate.creole.gazetteer.AbstractGazetteer
gate.creole.gazetteer.AbstractOntoGazetteer
- All Implemented Interfaces:
- ANNIEConstants, Gazetteer, OntoGazetteer, Executable, LanguageAnalyser, ProcessingResource, Resource, FeatureBearer, NameBearer, Serializable
- Direct Known Subclasses:
- OntoGazetteerImpl
public abstract class AbstractOntoGazetteer
- extends AbstractGazetteer
- implements OntoGazetteer
AbstratOntoGazetteer
This class implemnents the methods common for all ontology-aware gazetteers.
- See Also:
- Serialized Form
Fields inherited from interface gate.creole.ANNIEConstants |
ANNOTATION_COREF_FEATURE_NAME, DATE_ANNOTATION_TYPE, DATE_POSTED_ANNOTATION_TYPE, DOCUMENT_COREF_FEATURE_NAME, JOB_ID_ANNOTATION_TYPE, 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.gazetteer.AbstractGazetteer |
addGazetteerListener, fireGazetteerEvent, getAnnotationSetName, getCaseSensitive, getEncoding, getFeatures, getListsURL, getMappingDefinition, getWholeWordsOnly, reInit, setAnnotationSetName, setCaseSensitive, setEncoding, setFeatures, setListsURL, setMappingDefinition, setWholeWordsOnly |
Methods inherited from class gate.creole.AbstractProcessingResource |
addProgressListener, addStatusListener, cleanup, execute, fireProcessFinished, fireProgressChanged, fireStatusChanged, init, interrupt, isInterrupted, removeProgressListener, removeStatusListener |
Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.creole.gazetteer.Gazetteer |
add, addGazetteerListener, fireGazetteerEvent, getAnnotationSetName, getCaseSensitive, getEncoding, getListsURL, getMappingDefinition, lookup, remove, setAnnotationSetName, setCaseSensitive, setEncoding, setListsURL, setMappingDefinition |
mappingURL
protected URL mappingURL
- the url of the mapping definition
gazetteerName
protected String gazetteerName
- class name of the linear gazetteer to be called
gaz
protected Gazetteer gaz
- reference to the linear gazetteer
AbstractOntoGazetteer
public AbstractOntoGazetteer()
setGazetteerName
public void setGazetteerName(String name)
- Sets the class name of the linear gazetteer to be loaded.
- Specified by:
setGazetteerName
in interface OntoGazetteer
- Parameters:
name
- class name of a Gazetteer
getGazetteerName
public String getGazetteerName()
- Gets the class name of the linear gazetteer
- Specified by:
getGazetteerName
in interface OntoGazetteer
- Returns:
- the class name of the linear gazetteer
setMappingURL
public void setMappingURL(URL url)
- Sets the URL of the mapping definition
- Specified by:
setMappingURL
in interface OntoGazetteer
- Parameters:
url
- the URL of the mapping definition
getMappingURL
public URL getMappingURL()
- Gets the URL of the mapping definition
- Specified by:
getMappingURL
in interface OntoGazetteer
- Returns:
- the URL of the mapping definition
getGazetteer
public Gazetteer getGazetteer()
- Gets the linear gazetteer
- Specified by:
getGazetteer
in interface OntoGazetteer
- Returns:
- the linear gazetteer
setGazetteer
public void setGazetteer(Gazetteer gaze)
- Sets the linear gazetteer
- Specified by:
setGazetteer
in interface OntoGazetteer
- Parameters:
gaze
- the linear gazetteer to be associated with this onto gazetteer.
getLinearDefinition
public LinearDefinition getLinearDefinition()
- Overrides
Gazetteer
and retrieves the linear definition from the underlying
linear gazetteer
- Specified by:
getLinearDefinition
in interface Gazetteer
- Overrides:
getLinearDefinition
in class AbstractGazetteer
- Returns:
- the linear definition of the gazetteer