|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.jape.Transducer
gate.jape.MultiPhaseTransducer
public class MultiPhaseTransducer
Represents a complete CPSL grammar, with a phase name, options and rule set (accessible by name and by sequence). Implements a transduce method taking a Document as input. Constructs from String or File.
Field Summary |
---|
Fields inherited from class gate.jape.Transducer |
---|
enableDebugging, interrupted, name, ontology |
Fields inherited from interface gate.jape.JapeConstants |
---|
ALL_STYLE, APPELT_STYLE, BRILL_STYLE, DEFAULT_PRIORITY, FIRST_STYLE, INDENT_PADDING, KLEENE_PLUS, KLEENE_QUERY, KLEENE_STAR, MULTI_SPAN_BINDING, NO_BINDING, NO_KLEENE_OP, ONCE_STYLE, SINGLE_SPAN_BINDING |
Constructor Summary | |
---|---|
MultiPhaseTransducer()
Anonymous construction |
|
MultiPhaseTransducer(String name)
Construction from name. |
Method Summary | |
---|---|
void |
addPhase(String name,
Transducer phase)
Add phase. |
void |
cleanUp()
Ask each phase to clean up (delete action class files, for e.g.). |
void |
finish()
Finish: replace dynamic data structures with Java arrays; called after parsing. |
ArrayList |
getPhases()
|
void |
interrupt()
Notifies this PR that it should stop its execution as soon as possible. |
void |
orderPhases(String[] phaseNames)
Change the phase order to the one specified in a list of names. |
void |
setEnableDebugging(boolean enableDebugging)
|
void |
setName(String name)
Set the name. |
void |
setOntology(Ontology ontology)
Sets the ontology used by this transducer; |
void |
setPhases(ArrayList phases)
Sets the phases |
String |
toString()
Create a string representation of the object. |
String |
toString(String pad)
Create a string representation of the object. |
void |
transduce(Document doc,
AnnotationSet input,
AnnotationSet output)
Transduce the document by running each phase in turn. |
Methods inherited from class gate.jape.Transducer |
---|
addProgressListener, addStatusListener, fireProcessFinished, fireProgressChanged, fireStatusChanged, getBaseURL, getName, getOntology, isDebugMode, isEnableDebugging, isInterrupted, isMatchGroupMode, removeProgressListener, removeStatusListener, setBaseURL, setDebugMode, setMatchGroupMode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiPhaseTransducer(String name)
public MultiPhaseTransducer()
Method Detail |
---|
public void interrupt()
interrupt
in class Transducer
public void setName(String name)
public void setOntology(Ontology ontology)
setOntology
in class Transducer
ontology
- an Ontology
value;public void addPhase(String name, Transducer phase)
public void orderPhases(String[] phaseNames)
public void finish()
finish
in class Transducer
public void transduce(Document doc, AnnotationSet input, AnnotationSet output) throws JapeException, ExecutionException
transduce
in class Transducer
JapeException
ExecutionException
public void setEnableDebugging(boolean enableDebugging)
setEnableDebugging
in class Transducer
public void cleanUp()
cleanUp
in class Transducer
public String toString()
toString
in class Object
public String toString(String pad)
toString
in class Transducer
public ArrayList getPhases()
public void setPhases(ArrayList phases)
phases
-
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |