|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractProcessingResource
gate.creole.AbstractLanguageAnalyser
gate.creole.gazetteer.AbstractGazetteer
public abstract class AbstractGazetteer
AbstractGazetteer This class implements the common-for-all methods of the Gazetteer interface
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gate.creole.AbstractProcessingResource |
|---|
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener |
| Field Summary | |
|---|---|
protected String |
annotationSetName
Used to store the annotation set currently being used for the newly generated annotations |
protected Boolean |
caseSensitive
Should this gazetteer be case sensitive. |
protected LinearDefinition |
definition
the linear definition of the gazetteer |
protected String |
encoding
the encoding of the gazetteer |
protected FeatureMap |
features
A map of the features |
protected Set |
listeners
the set of gazetteer listeners |
protected URL |
listsURL
The value of this property is the URL that will be used for reading the lists dtaht define this Gazetteer |
protected MappingDefinition |
mappingDefinition
reference to mapping definiton info allows filling of Lookup.ontologyClass according to a list |
protected Boolean |
wholeWordsOnly
Should this gazetteer only match whole words. |
| Fields inherited from class gate.creole.AbstractLanguageAnalyser |
|---|
corpus, document |
| Fields inherited from class gate.creole.AbstractProcessingResource |
|---|
interrupted |
| Fields inherited from class gate.creole.AbstractResource |
|---|
name |
| Constructor Summary | |
|---|---|
AbstractGazetteer()
|
|
| Method Summary | |
|---|---|
void |
addGazetteerListener(GazetteerListener gl)
Registers a Gazetteer Listener |
void |
fireGazetteerEvent(GazetteerEvent ge)
fires a Gazetteer Event |
String |
getAnnotationSetName()
Gets the AnnotationSet that will be used at the next run for the newly produced annotations. |
Boolean |
getCaseSensitive()
Gets the current case sensitivity |
String |
getEncoding()
|
FeatureMap |
getFeatures()
Get the feature set |
LinearDefinition |
getLinearDefinition()
Gets the linear definition of this gazetteer. there is no parallel set method because the definition is loaded through the listsUrl on init(). |
URL |
getListsURL()
Gets the url of the lists.def file |
MappingDefinition |
getMappingDefinition()
Gets the mapping definition of this gazetteer,if such |
Boolean |
getWholeWordsOnly()
Gets the value for the wholeWordsOnly parameter. |
void |
reInit()
Reinitialises the processing resource. |
void |
setAnnotationSetName(String newAnnotationSetName)
Sets the AnnotationSet that will be used at the next run for the newly produced annotations. |
void |
setCaseSensitive(Boolean newCaseSensitive)
Triggers case sensitive |
void |
setEncoding(String newEncoding)
|
void |
setFeatures(FeatureMap features)
Set the feature set |
void |
setListsURL(URL newListsURL)
Sets the url of the lists.def file |
void |
setMappingDefinition(MappingDefinition mapping)
Sets the mapping definition if such to this gazetteer |
void |
setWholeWordsOnly(Boolean wholeWordsOnly)
Sets the value for the wholeWordsOnly parameter. |
| Methods inherited from class gate.creole.AbstractLanguageAnalyser |
|---|
getCorpus, getDocument, setCorpus, setDocument |
| 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, lookup, remove |
| Methods inherited from interface gate.LanguageAnalyser |
|---|
getCorpus, getDocument, setCorpus, setDocument |
| Methods inherited from interface gate.Resource |
|---|
cleanup, getParameterValue, init, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.NameBearer |
|---|
getName, setName |
| Methods inherited from interface gate.Executable |
|---|
execute, interrupt, isInterrupted |
| Field Detail |
|---|
protected Set listeners
protected String annotationSetName
protected FeatureMap features
protected String encoding
protected URL listsURL
protected Boolean caseSensitive
protected Boolean wholeWordsOnly
protected LinearDefinition definition
protected MappingDefinition mappingDefinition
| Constructor Detail |
|---|
public AbstractGazetteer()
| Method Detail |
|---|
public void setAnnotationSetName(String newAnnotationSetName)
setAnnotationSetName in interface GazetteernewAnnotationSetName - the annotation set name for
the annotations that are going to be producedpublic String getAnnotationSetName()
getAnnotationSetName in interface Gazetteerpublic void setEncoding(String newEncoding)
setEncoding in interface Gazetteerpublic String getEncoding()
getEncoding in interface Gazetteerpublic URL getListsURL()
Gazetteer
getListsURL in interface Gazetteerpublic void setListsURL(URL newListsURL)
Gazetteer
setListsURL in interface GazetteernewListsURL - the url of the lists.def file to be setpublic void setCaseSensitive(Boolean newCaseSensitive)
Gazetteer
setCaseSensitive in interface GazetteernewCaseSensitive - turn on or off case sensitivitypublic Boolean getCaseSensitive()
Gazetteer
getCaseSensitive in interface Gazetteerpublic void setMappingDefinition(MappingDefinition mapping)
Gazetteer
setMappingDefinition in interface Gazetteermapping - a mapping definitionpublic MappingDefinition getMappingDefinition()
Gazetteer
getMappingDefinition in interface Gazetteerpublic LinearDefinition getLinearDefinition()
getLinearDefinition in interface Gazetteerpublic FeatureMap getFeatures()
AbstractFeatureBearer
getFeatures in interface FeatureBearergetFeatures in class AbstractFeatureBearerpublic void setFeatures(FeatureMap features)
AbstractFeatureBearer
setFeatures in interface FeatureBearersetFeatures in class AbstractFeatureBearer
public void reInit()
throws ResourceInstantiationException
AbstractProcessingResourceAbstractProcessingResource.init(). This
functionality must be overriden by derived classes as necessary.
reInit in interface ProcessingResourcereInit in class AbstractProcessingResourceResourceInstantiationExceptionpublic void fireGazetteerEvent(GazetteerEvent ge)
fireGazetteerEvent in interface Gazetteerge - Gazetteer Event to be firedpublic void addGazetteerListener(GazetteerListener gl)
addGazetteerListener in interface Gazetteergl - Gazetteer Listener to be registeredpublic Boolean getWholeWordsOnly()
wholeWordsOnly parameter.
public void setWholeWordsOnly(Boolean wholeWordsOnly)
wholeWordsOnly parameter.
wholeWordsOnly - a Boolean value.
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||