> TypeSystemDescription ts = TypeSystemDescriptionFactory.createTypeSystemDescriptionFromPath("path", "path", "path");
> CollectionReader reader =CollectionReaderFactory.createCollectionReader(EpolMongoDbReader.class,ts,
>
> The problem is that i do not understand why the typeSystemInit method of my reader is not called by the CollectionReaderFactory.
The typeSystemInit() doesn't seem to be supported for collection readers by uimaFIT SimplePipeline at the moment. I suppose we never needed that. It should work if you use a CPE. You can build one with the CpeBuilder.
> furthermore it seems that there is no TypeSystem within the TypeSystemDescription.
> Can somebody help to figure out how to load a UIMA type system into a CollectionReader with uimaFit. All the paths that i use are correct but nothing happens to the CollectionReader while initialisation.
I recommend you avoid instantiating components directly, better stick to the "create*Descriptor" methods. Try using
CollectionReaderDescription reader = CollectionReaderFactory.createDescription(EpolMongoDbReader.class,ts,…
and run it as a CPE and not via SimplePipeline.
Can you report this as a bug please, either in the Google Code issue tracker or preferably in the Apache Jira, as uimaFIT has been transferred to the Apache foundation.
Cheers,
-- Richard