|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Gazetteer
The Gazetteer interface defines the mandatory methods of a gazetteer PR.
| Method Summary | |
|---|---|
boolean |
add(String singleItem,
Lookup lookup)
Adds a new string to the gazetteer |
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()
|
LinearDefinition |
getLinearDefinition()
Gets the linear definition of this gazetteer. |
URL |
getListsURL()
Gets the url of the lists.def file |
MappingDefinition |
getMappingDefinition()
Gets the mapping definition of this gazetteer,if such |
Set |
lookup(String singleItem)
Looks-up a string |
boolean |
remove(String singleItem)
Removes a string from the gazetteer |
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 |
setListsURL(URL newListsURL)
Sets the url of the lists.def file |
void |
setMappingDefinition(MappingDefinition mapping)
Sets the mapping definition if such to this gazetteer |
| Methods inherited from interface gate.LanguageAnalyser |
|---|
getCorpus, getDocument, setCorpus, setDocument |
| Methods inherited from interface gate.ProcessingResource |
|---|
reInit |
| Methods inherited from interface gate.Resource |
|---|
cleanup, getParameterValue, init, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
|---|
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
|---|
getName, setName |
| Methods inherited from interface gate.Executable |
|---|
execute, interrupt, isInterrupted |
| Method Detail |
|---|
Set lookup(String singleItem)
singleItem - the string
void setAnnotationSetName(String newAnnotationSetName)
newAnnotationSetName - the annotation set name for
the annotations that are going to be producedString getAnnotationSetName()
void setEncoding(String newEncoding)
String getEncoding()
URL getListsURL()
void setListsURL(URL newListsURL)
newListsURL - the url of the lists.def file to be setvoid setCaseSensitive(Boolean newCaseSensitive)
newCaseSensitive - turn on or off case sensitivityBoolean getCaseSensitive()
void setMappingDefinition(MappingDefinition mapping)
mapping - a mapping definitionMappingDefinition getMappingDefinition()
LinearDefinition getLinearDefinition()
void fireGazetteerEvent(GazetteerEvent ge)
ge - Gazetteer Event to be firedvoid addGazetteerListener(GazetteerListener gl)
gl - Gazetteer Listener to be registered
boolean add(String singleItem,
Lookup lookup)
singleItem - lookup - the lookup to be associated with the new string
boolean remove(String singleItem)
singleItem -
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||