Hi,

I wonder how to implement a generic AE that is able to create a new CAS
and copies a given view to a specified view of the new CAS. The new CAS
then should be serialized.

What I tried is here:
https://svn.apache.org/repos/asf/uima/sandbox/ruta/trunk/ruta-core/src/main/java/org/apache/uima/ruta/engine/ViewWriter.java

When I call this AE within Ruta without mapping, then
getContext().getEmptyCas(CAS.class) returns a CAS without additional
types and CasCopier removes all annotations (due to lenient). With
mapping, it complains that the sofaFS specified by the parameter cannot
be found.

I tried a few things without success. The next thing would be to provide
a parameter with the location of a descriptor for creating a separate
CAS and completely avoiding the CAS multiplier functionality...

Any ideas?

Peter

Reply via email to