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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
DEBUG
private static final boolean DEBUG
- Debug flag
features
private FeatureMap features
myListeners
private List myListeners
doc
private Document doc
annotationSet
private AnnotationSet annotationSet
DumbTokeniser
public DumbTokeniser()
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()