gate.util
Class DumbTokeniser

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

public class DumbTokeniser
extends AbstractProcessingResource

See Also:
Serialized Form

Field Summary
private  AnnotationSet annotationSet
           
private static boolean DEBUG
          Debug flag
private  Document doc
           
private  FeatureMap features
           
private  List myListeners
           
 
Fields inherited from class gate.creole.AbstractProcessingResource
executionException
 
Fields inherited from class gate.creole.AbstractResource
serialVersionUID
 
Constructor Summary
DumbTokeniser()
           
 
Method Summary
 void addProcessProgressListener(ProgressListener listener)
           
protected  void fireProcessFinishedEvent()
           
protected  void fireProgressChangedEvent(int i)
           
 FeatureMap getFeatures()
          Get the feature set
static void main(String[] args)
           
 void removeProcessProgressListener(ProgressListener listener)
           
 void run_()
           
 void run()
          Run the resource.
 void setFeatures(FeatureMap features)
          Set the feature set
 void tokenise(Document doc, AnnotationSet annotationSet, boolean runInNewThread)
          Tokenises the given document writting all the generated annotations in the provided annotation set.
 void tokenise(Document doc, boolean runInNewThread)
          Tokenises the given document writting all the generated annotations in the default annotation set.
 
Methods inherited from class gate.creole.AbstractProcessingResource
check, init, reInit
 
Methods inherited from class gate.creole.AbstractResource
getName, setName
 
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
getName, setName
 

Field Detail

DEBUG

private static final boolean DEBUG
Debug flag

features

private FeatureMap features

myListeners

private List myListeners

doc

private Document doc

annotationSet

private AnnotationSet annotationSet
Constructor Detail

DumbTokeniser

public DumbTokeniser()
Method Detail

main

public static void main(String[] args)

getFeatures

public FeatureMap getFeatures()
Description copied from interface: FeatureBearer
Get the feature set
Overrides:
getFeatures in class AbstractFeatureBearer

setFeatures

public void setFeatures(FeatureMap features)
Description copied from interface: FeatureBearer
Set the feature set
Overrides:
setFeatures in class AbstractFeatureBearer

tokenise

public void tokenise(Document doc,
                     AnnotationSet annotationSet,
                     boolean runInNewThread)
Tokenises the given document writting all the generated annotations in the provided annotation set. It is the user's responsability to make sure that the annotation set provided belongs to the document as the tokeniser will not make any checks.

tokenise

public void tokenise(Document doc,
                     boolean runInNewThread)
Tokenises the given document writting all the generated annotations in the default annotation set.

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

run_

public void run_()

addProcessProgressListener

public void addProcessProgressListener(ProgressListener listener)

removeProcessProgressListener

public void removeProcessProgressListener(ProgressListener listener)

fireProgressChangedEvent

protected void fireProgressChangedEvent(int i)

fireProcessFinishedEvent

protected void fireProcessFinishedEvent()