Jörn Kottmann wrote:
Yes I only cast to get the annotator name, but maybe there is a better way to do this... But this is not the main topic here.

I think we can remove this method, the menu shows the filename of the descriptor file.

The main thing is that you don't need to cast the ResourceSpecifier to an AnalysisEngine. This can be done internally by the UIMA framework. With your old code, only analysis engine components could be loaded. Now I just use resource specifier descriptor and let the UIMA framework decide what the content of the specifier is. So in case of a PEAR specifier the UIMA framework knows what to do.

Ok, thats fine.

Thanks,
Jörn



OK, so I will go ahead and apply the patch. I will also remove the getName() method, it isn't called anyway.

-- Michael

Reply via email to