On Sun, Jan 17, 2010 at 3:39 AM, Radwen ANIBA <[email protected]> wrote:
> I have developed an application using UIMA and in Collection reader the
> InputDirectory is developped with a test folder fixed the CPE descriptor. I
> would like to know how to pass this argument through a main java
> application, do this mean that we have to create the CPE descriptor
> programmatically and then push the argument entered as an Input directory ?

Using UUTUC (http://code.google.com/p/uutuc/):

CollectionReaderFactory.createCollectionReaderFromPath(
    "path/to/your/xml/descriptor.xml",
    "your-parameter-name-0", args[0],
    "your-parameter-name-0", args[1]);
It's also possible to use the CollectionReader class directly instead
of having to write the XML descriptor file.

Steve
-- 
Where did you get that preposterous hypothesis?
Did Steve tell you that?
        --- The Hiphopopotamus

Reply via email to