Thanks, Richard!
That's also the solution I can think of: getting the descriptor contents
from the database and save them as temp files. Then use those temp files to
initiate the cas processors.
Best,
Xiaobin
On Fri, Sep 9, 2016 at 5:28 PM, Richard Eckart de Castilho
wrote:
>
Can you just write out the component descriptor to a file and pass that to
the factory? I think you need a path since
the underlying code needs uima-style include which supports import by name
or location. Perhaps CPE can do this for you
with a new API you are suggesting but I the quickest path
Afaik there is no such thing. That is why the uimaFIT CpeBuilder
stores programmatically created engine descriptors in temporary
files.
Cheers,
-- Richard
> On 09.09.2016, at 17:15, Chen Xiaobin wrote:
>
> Hi,
> I am wondering if there is a way to initiate a
Hi,
I am wondering if there is a way to initiate a CpeComponentDescriptor from
an InputStream or a String, instead of from a physical descriptor file.
I am using the following code originally:
CpeCasProcessor casProcessor = CpeDescriptorFactory.
produceCasProcessor(ae.getName());