gate.creole
Class POSTagger

java.lang.Object
  |
  +--gate.util.AbstractFeatureBearer
        |
        +--gate.creole.AbstractResource
              |
              +--gate.creole.AbstractProcessingResource
                    |
                    +--gate.creole.POSTagger
All Implemented Interfaces:
FeatureBearer, ProcessingResource, Resource, Runnable, Serializable

public class POSTagger
extends AbstractProcessingResource

This class is a wrapper for HepTag, Mark Hepple's POS tagger.

See Also:
Serialized Form

Field Summary
private  Document document
           
private  String inputASName
           
private  URL lexiconURL
           
private  String outputASName
           
private  Vector progressListeners
           
private  URL rulesURL
           
private  Vector statusListeners
           
protected  hepple.postag.POSTagger tagger
           
 
Fields inherited from class gate.creole.AbstractProcessingResource
executionException
 
Fields inherited from class gate.creole.AbstractResource
serialVersionUID
 
Fields inherited from class gate.util.AbstractFeatureBearer
features
 
Constructor Summary
POSTagger()
           
 
Method Summary
 void addProgressListener(ProgressListener l)
           
 void addStatusListener(StatusListener l)
           
protected  void fireProcessFinished()
           
protected  void fireProgressChanged(int e)
           
protected  void fireStatusChanged(String e)
           
 Document getDocument()
           
 String getInputASName()
           
 URL getLexiconURL()
           
 String getOutputASName()
           
 URL getRulesURL()
           
 Resource init()
          Initialise this resource, and return it.
 void removeProgressListener(ProgressListener l)
           
 void removeStatusListener(StatusListener l)
           
 void run()
          Run the resource.
 void setDocument(Document newDocument)
           
 void setInputASName(String newInputASName)
           
 void setLexiconURL(URL newLexiconURL)
           
 void setOutputASName(String newOutputASName)
           
 void setRulesURL(URL newRulesURL)
           
 
Methods inherited from class gate.creole.AbstractProcessingResource
check, reInit
 
Methods inherited from class gate.creole.AbstractResource
getName, setName
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures, setFeatures
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, getName, setFeatures, setName
 

Field Detail

tagger

protected hepple.postag.POSTagger tagger

lexiconURL

private URL lexiconURL

rulesURL

private URL rulesURL

document

private Document document

inputASName

private String inputASName

outputASName

private String outputASName

statusListeners

private transient Vector statusListeners

progressListeners

private transient Vector progressListeners
Constructor Detail

POSTagger

public POSTagger()
Method Detail

init

public Resource init()
              throws ResourceInstantiationException
Description copied from class: AbstractProcessingResource
Initialise this resource, and return it.
Overrides:
init in class AbstractProcessingResource

run

public void run()
Description copied from class: AbstractProcessingResource
Run the resource. It doesn't make sense not to override this in subclasses so the default implementation signals an exception.
Overrides:
run in class AbstractProcessingResource

setLexiconURL

public void setLexiconURL(URL newLexiconURL)

getLexiconURL

public URL getLexiconURL()

setRulesURL

public void setRulesURL(URL newRulesURL)

getRulesURL

public URL getRulesURL()

setDocument

public void setDocument(Document newDocument)

getDocument

public Document getDocument()

setInputASName

public void setInputASName(String newInputASName)

getInputASName

public String getInputASName()

setOutputASName

public void setOutputASName(String newOutputASName)

getOutputASName

public String getOutputASName()

removeStatusListener

public void removeStatusListener(StatusListener l)

addStatusListener

public void addStatusListener(StatusListener l)

fireStatusChanged

protected void fireStatusChanged(String e)

removeProgressListener

public void removeProgressListener(ProgressListener l)

addProgressListener

public void addProgressListener(ProgressListener l)

fireProgressChanged

protected void fireProgressChanged(int e)

fireProcessFinished

protected void fireProcessFinished()