|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.util.AbstractFeatureBearer gate.creole.AbstractResource gate.creole.AbstractProcessingResource gate.creole.AbstractLanguageAnalyser gate.creole.gazetteer.FlexibleGazetteer
public class FlexibleGazetteer
Title: Flexible Gazetteer
The Flexible Gazetteer provides users with the flexibility to choose their own customised input and an external Gazetteer. For example, the user might want to replace words in the text with their base forms (which is an output of the Morphological Analyser).
The Flexible Gazetteer performs lookup over a document based on the values of an arbitrary feature of an arbitrary annotation type, by using an externally provided gazetteer. It is important to use an external gazetteer as this allows the use of any type of gazetteer (e.g. an Ontological gazetteer).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class gate.creole.AbstractProcessingResource |
---|
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener |
Field Summary |
---|
Fields inherited from class gate.creole.AbstractLanguageAnalyser |
---|
corpus |
Fields inherited from class gate.creole.AbstractProcessingResource |
---|
interrupted |
Fields inherited from class gate.creole.AbstractResource |
---|
name |
Fields inherited from class gate.util.AbstractFeatureBearer |
---|
features |
Constructor Summary | |
---|---|
FlexibleGazetteer()
|
Method Summary | |
---|---|
void |
execute()
This method runs the gazetteer. |
Document |
getDocument()
Returns the document set up by user to work on |
Gazetteer |
getGazetteerInst()
|
String |
getInputASName()
Returns the inputAnnotationSetName |
List<String> |
getInputFeatureNames()
Returns the feature names that are provided by the user to use their values to replace their actual strings in the document |
String |
getOutputASName()
Returns the outputAnnotationSetName |
Resource |
init()
Does the actual loading and parsing of the lists. |
void |
setDocument(Document doc)
Sets the document to work on |
void |
setGazetteerInst(Gazetteer gazetteerInst)
|
void |
setInputAnnotationSetName(String annName)
Deprecated. |
void |
setInputASName(String inputASName)
sets the input AnnotationSet Name |
void |
setInputFeatureNames(List<String> inputs)
Feature names for example: Token.string, Token.root etc... |
void |
setOutputAnnotationSetName(String annName)
Deprecated. |
void |
setOutputASName(String outputASName)
Sets the name of annotation set that should be used for storing new annotations |
Methods inherited from class gate.creole.AbstractLanguageAnalyser |
---|
getCorpus, setCorpus |
Methods inherited from class gate.creole.AbstractProcessingResource |
---|
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, getRuntimeParameterValues, getRuntimeParameterValues, interrupt, isInterrupted, reInit, removeProgressListener, removeStatusListener |
Methods inherited from class gate.creole.AbstractResource |
---|
checkParameterValues, getBeanInfo, getInitParameterValues, getInitParameterValues, getName, getParameterValue, getParameterValue, getParameterValues, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
Methods inherited from class gate.util.AbstractFeatureBearer |
---|
getFeatures, setFeatures |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gate.ProcessingResource |
---|
reInit |
Methods inherited from interface gate.Resource |
---|
cleanup, getParameterValue, 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 |
---|
interrupt, isInterrupted |
Constructor Detail |
---|
public FlexibleGazetteer()
Method Detail |
---|
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractProcessingResource
ResourceInstantiationException
public void execute() throws ExecutionException
execute
in interface Executable
execute
in class AbstractProcessingResource
ExecutionException
public void setDocument(Document doc)
setDocument
in interface LanguageAnalyser
setDocument
in class AbstractLanguageAnalyser
doc
- public Document getDocument()
getDocument
in interface LanguageAnalyser
getDocument
in class AbstractLanguageAnalyser
Document
public void setOutputASName(String outputASName)
outputASName
- @Deprecated public void setOutputAnnotationSetName(String annName)
annName
- public String getOutputASName()
String
value.@Deprecated public void setInputAnnotationSetName(String annName)
annName
- public void setInputASName(String inputASName)
inputASName
- public String getInputASName()
String
value.public void setInputFeatureNames(List<String> inputs)
inputs
- public List<String> getInputFeatureNames()
List
value.public Gazetteer getGazetteerInst()
public void setGazetteerInst(Gazetteer gazetteerInst)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |