|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractProcessingResource
gate.creole.AbstractLanguageAnalyser
gate.creole.Transducer
A cascaded multi-phase transducer using the Jape language which is a variant of the CPSL language.
| Nested Class Summary |
| Nested classes inherited from class gate.creole.AbstractProcessingResource |
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener |
| Field Summary | |
protected Batch |
batch
The actual JapeTransducer used for processing the document(s). |
static String |
TRANSD_DOCUMENT_PARAMETER_NAME
|
static String |
TRANSD_ENCODING_PARAMETER_NAME
|
static String |
TRANSD_GRAMMAR_URL_PARAMETER_NAME
|
static String |
TRANSD_INPUT_AS_PARAMETER_NAME
|
static String |
TRANSD_OUTPUT_AS_PARAMETER_NAME
|
| Fields inherited from class gate.creole.AbstractLanguageAnalyser |
corpus, document |
| Fields inherited from class gate.creole.AbstractProcessingResource |
interrupted |
| Fields inherited from class gate.creole.AbstractResource |
name |
| Fields inherited from class gate.util.AbstractFeatureBearer |
features |
| Constructor Summary | |
Transducer()
Default constructor. |
|
| Method Summary | |
void |
execute()
Implementation of the run() method from Runnable.
|
Boolean |
getEnableDebugging()
|
String |
getEncoding()
Gets the encoding used for reding the grammar file(s). |
URL |
getGrammarURL()
Gets the URL to the grammar used to build this transducer. |
String |
getInputASName()
Gets the AnnotationSet used as input by this transducer. |
Ontology |
getOntology()
Gets the ontology used by this transducer. |
String |
getOutputASName()
Gets the AnnotationSet used as output by this transducer. |
Resource |
init()
This method is the one responsible for initialising the transducer. |
void |
interrupt()
Notifies all the PRs in this controller that they should stop their execution as soon as possible. |
void |
setEnableDebugging(Boolean enableDebugging)
|
void |
setEncoding(String newEncoding)
Sets the encoding to be used for reding the input file(s) forming the Jape grammar. |
void |
setGrammarURL(URL newGrammarURL)
Sets the grammar to be used for building this transducer. |
void |
setInputASName(String newInputASName)
Sets the AnnotationSet to be used as input for the transducer. |
void |
setOntology(Ontology ontology)
Sets the ontology used by this transducer. |
void |
setOutputASName(String newOutputASName)
Sets the AnnotationSet to be used as output by the transducer. |
| Methods inherited from class gate.creole.AbstractLanguageAnalyser |
getCorpus, getDocument, setCorpus, setDocument |
| Methods inherited from class gate.creole.AbstractProcessingResource |
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, isInterrupted, reInit, removeProgressListener, removeStatusListener |
| Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
| Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures, setFeatures |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gate.ProcessingResource |
reInit |
| Methods inherited from interface gate.Resource |
cleanup, getParameterValue, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
getName, setName |
| Methods inherited from interface gate.Executable |
isInterrupted |
| Field Detail |
public static final String TRANSD_DOCUMENT_PARAMETER_NAME
public static final String TRANSD_INPUT_AS_PARAMETER_NAME
public static final String TRANSD_OUTPUT_AS_PARAMETER_NAME
public static final String TRANSD_ENCODING_PARAMETER_NAME
public static final String TRANSD_GRAMMAR_URL_PARAMETER_NAME
protected Batch batch
| Constructor Detail |
public Transducer()
init() method.
| Method Detail |
public Resource init()
throws ResourceInstantiationException
init in interface Resourceinit in class AbstractProcessingResourceResourceInstantiationException
public void execute()
throws ExecutionException
Runnable.
This method is responsible for doing all the processing of the input
document.
execute in interface Executableexecute in class AbstractProcessingResourceExecutionExceptionpublic void interrupt()
interrupt in interface Executableinterrupt in class AbstractProcessingResourcepublic void setGrammarURL(URL newGrammarURL)
newGrammarURL - an URL to a file containing a Jape grammar.public URL getGrammarURL()
URL pointing to the grammar file.public void setEncoding(String newEncoding)
newEncoding - a {link String} representing the encoding.public String getEncoding()
public void setInputASName(String newInputASName)
AnnotationSet to be used as input for the transducer.
newInputASName - a AnnotationSetpublic String getInputASName()
AnnotationSet used as input by this transducer.
AnnotationSetpublic void setOutputASName(String newOutputASName)
AnnotationSet to be used as output by the transducer.
newOutputASName - a AnnotationSetpublic String getOutputASName()
AnnotationSet used as output by this transducer.
AnnotationSetpublic Boolean getEnableDebugging()
public void setEnableDebugging(Boolean enableDebugging)
public Ontology getOntology()
Ontology value.public void setOntology(Ontology ontology)
ontology - an Ontology value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||