public class UimaResource
extends java.lang.Object
Constructor and Description |
---|
UimaResource(org.apache.uima.analysis_engine.AnalysisEngine analysisEngine) |
UimaResource(org.apache.uima.analysis_engine.AnalysisEngine analysisEngine,
org.apache.uima.util.CasPool casPool) |
Modifier and Type | Method and Description |
---|---|
org.apache.uima.analysis_engine.AnalysisEngine |
getAnalysisEngine() |
org.apache.uima.util.CasPool |
getCasPool() |
org.apache.uima.cas.CAS |
process(java.lang.String text)
Use the given analysis engine and process the given text
You must release the return cas yourself
|
void |
release(org.apache.uima.cas.CAS cas) |
org.apache.uima.cas.CAS |
retrieve() |
void |
setAnalysisEngine(org.apache.uima.analysis_engine.AnalysisEngine analysisEngine) |
void |
setCasPool(org.apache.uima.util.CasPool casPool) |
public UimaResource(org.apache.uima.analysis_engine.AnalysisEngine analysisEngine) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public UimaResource(org.apache.uima.analysis_engine.AnalysisEngine analysisEngine, org.apache.uima.util.CasPool casPool)
public org.apache.uima.analysis_engine.AnalysisEngine getAnalysisEngine()
public void setAnalysisEngine(org.apache.uima.analysis_engine.AnalysisEngine analysisEngine)
public org.apache.uima.util.CasPool getCasPool()
public void setCasPool(org.apache.uima.util.CasPool casPool)
public org.apache.uima.cas.CAS process(java.lang.String text)
text
- the text to processpublic org.apache.uima.cas.CAS retrieve()
public void release(org.apache.uima.cas.CAS cas)