Hi,

> I recently wanted to
> integrate POS Tagger (ClearTK) within my pipeline. This when I cam across
> UIMAFIT...


if you use ClearTK and want to use uimaFIT, it should be much easier for
you to avoid the XML files altogether and just use the uimaFIT factories.

AnalysisEngineFactory.createPrimitiveDescription(PosTagger.class);

>                      I am trying to call AnalysisEngineDescription XML
> files within UIMAFIT.  Here is what I do..
> 
> CollectionReader reader =
> UriCollectionReader.getCollectionReaderFromFiles(files);
> 
> XMLInputSource in1 = new XMLInputSource("desc/analysisenginedescription.xml"
> );
> 
>     AnalysisEngineDescription aeDesc2 =
> UIMAFramework.getXMLParser().parseAnalysisEngineDescription(in1);
> 
> AggregateBuilder builder = new AggregateBuilder();
> 
> builder.add(aeDesc2);
> 
> SimplePipeline.runPipeline(reader, builder.createAggregateDescription());
> 
> Is this right? I have some XML files I had built using Component Descriptor
> earlier. I was using this within UIMA pipeline.
> 
> I keep getting an error whenever I run this code?

What error do you get?

-- Richard

Reply via email to