|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.jape.Transducer | +--gate.jape.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.
Fields inherited from interface gate.jape.JapeConstants |
APPELT_STYLE, BRILL_STYLE, DEFAULT_PRIORITY, FIRST_STYLE, INDENT_PADDING, KLEENE_PLUS, KLEENE_QUERY, KLEENE_STAR, MULTI_SPAN_BINDING, NO_BINDING, NO_KLEENE_OP, 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. |
com.objectspace.jgl.Array |
getPhases()
|
void |
orderPhases(String[] phaseNames)
Change the phase order to the one specified in a list of names. |
void |
setName(String name)
Set the name. |
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, getBaseURL, getName, removeProgressListener, removeStatusListener, setBaseURL |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MultiPhaseTransducer(String name)
public MultiPhaseTransducer()
Method Detail |
public void setName(String name)
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
transduce
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 com.objectspace.jgl.Array getPhases()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |