gate.creole.nerc
Class Nerc
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.ArrayList
|
+--gate.creole.SerialController
|
+--gate.creole.nerc.Nerc
- All Implemented Interfaces:
- Cloneable, Collection, Controller, FeatureBearer, List, ProcessingResource, Resource, Runnable, Serializable
- public class Nerc
- extends SerialController
NERC stands for Named-Entity Recognition Component. This class wraps
various of GATE's builtin CREOLE components to form an NE recogniser.
- See Also:
- Serialized Form
Constructor Summary |
Nerc()
|
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, RangeCheck, readObject, remove, removeRange, set, size, toArray, toArray, trimToSize, writeObject |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
tokeniser
protected DefaultTokeniser tokeniser
- XXX
gazetteer
protected DefaultGazetteer gazetteer
- XXX
transducer
protected Transducer transducer
- XXX
DEBUG
private static final boolean DEBUG
tokeniserRulesURL
protected URL tokeniserRulesURL
gazetteerListsURL
protected URL gazetteerListsURL
japeGrammarURL
protected URL japeGrammarURL
encoding
protected String encoding
document
protected Document document
progressListeners
private transient Vector progressListeners
statusListeners
private transient Vector statusListeners
tempAnnotationSetName
protected String tempAnnotationSetName
Nerc
public Nerc()
init
public Resource init()
throws ResourceInstantiationException
- Initialise this resource, and return it.
- Overrides:
init
in class SerialController
runSystem
protected void runSystem()
throws ExecutionException
- Runs the group of processing resources over the current document
createEntitySet
protected void createEntitySet()
- reads the results created by the system run and packages them in one
entity set that is added to the document features
run
public void run()
- Description copied from class:
SerialController
- Run the Processing Resources in sequence.
- Overrides:
run
in class SerialController
setTokeniserRulesURL
public void setTokeniserRulesURL(URL newTokeniserRulesURL)
getTokeniserRulesURL
public URL getTokeniserRulesURL()
setGazetteerListsURL
public void setGazetteerListsURL(URL newGazetteerListsURL)
getGazetteerListsURL
public URL getGazetteerListsURL()
setJapeGrammarURL
public void setJapeGrammarURL(URL newJapeGrammarURL)
getJapeGrammarURL
public URL getJapeGrammarURL()
setEncoding
public void setEncoding(String newEncoding)
getEncoding
public String getEncoding()
setDocument
public void setDocument(Document newDocument)
getDocument
public Document getDocument()
removeProgressListener
public void removeProgressListener(ProgressListener l)
addProgressListener
public void addProgressListener(ProgressListener l)
fireProgressChanged
protected void fireProgressChanged(int e)
fireProcessFinished
protected void fireProcessFinished()
removeStatusListener
public void removeStatusListener(StatusListener l)
addStatusListener
public void addStatusListener(StatusListener l)
fireStatusChanged
protected void fireStatusChanged(String e)
setTempAnnotationSetName
public void setTempAnnotationSetName(String newTempAnnotationSetName)
getTempAnnotationSetName
public String getTempAnnotationSetName()