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

Inner Class Summary
(package private)  class Nerc.CustomProgressListener
           
 
Field Summary
private static boolean DEBUG
           
protected  Document document
           
protected  String encoding
           
protected  DefaultGazetteer gazetteer
          XXX
protected  URL gazetteerListsURL
           
protected  URL japeGrammarURL
           
private  Vector progressListeners
           
private  Vector statusListeners
           
protected  String tempAnnotationSetName
           
protected  DefaultTokeniser tokeniser
          XXX
protected  URL tokeniserRulesURL
           
protected  Transducer transducer
          XXX
 
Fields inherited from class gate.creole.SerialController
executionException, features
 
Fields inherited from class java.util.ArrayList
elementData, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Nerc()
           
 
Method Summary
 void addProgressListener(ProgressListener l)
           
 void addStatusListener(StatusListener l)
           
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
protected  void fireProcessFinished()
           
protected  void fireProgressChanged(int e)
           
protected  void fireStatusChanged(String e)
           
 Document getDocument()
           
 String getEncoding()
           
 URL getGazetteerListsURL()
           
 URL getJapeGrammarURL()
           
 String getTempAnnotationSetName()
           
 URL getTokeniserRulesURL()
           
 Resource init()
          Initialise this resource, and return it.
 void removeProgressListener(ProgressListener l)
           
 void removeStatusListener(StatusListener l)
           
 void run()
          Run the Processing Resources in sequence.
protected  void runSystem()
          Runs the group of processing resources over the current document
 void setDocument(Document newDocument)
           
 void setEncoding(String newEncoding)
           
 void setGazetteerListsURL(URL newGazetteerListsURL)
           
 void setJapeGrammarURL(URL newJapeGrammarURL)
           
 void setTempAnnotationSetName(String newTempAnnotationSetName)
           
 void setTokeniserRulesURL(URL newTokeniserRulesURL)
           
 
Methods inherited from class gate.creole.SerialController
check, equals, getFeatures, getName, reInit, setFeatures, setName, setRuntimeParameters
 
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 class java.util.AbstractList
hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 
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
 

Field Detail

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
Constructor Detail

Nerc

public Nerc()
Method Detail

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()