Note: the JCas that is returned is equivalent to what you would get if you called newCAS().getCurrentView().getJCas()
. That is, this method returns a view of the default Sofa, NOT a Base CAS.
Important: CAS creation is expensive, so if at all possible an application should reuse CASes. When a JCas instance is no longer being used, call its {@link JCas#reset()} method,which will remove all prior analysis information, and then reuse that same JCas instance for another call to {@link #process(JCas)}.
@return a new CAS
appropriate for this AnalysisEngine.
@throws ResourceInitializationException if a CAS could not be created because this AnalysisEngine's CAS metadata (type system, type priorities, or FS indexes) are invalid. Ideally this would be checked at AnalysisEngine initialization time, and it will likely be moved in the future.
|
|
|
|