kamleshcropin / uimafit

Automatically exported from code.google.com/p/uimafit
0 stars 0 forks source link

UIMA allows to declare an AE with a reader implementation, but not uimaFIT #89

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
UIMA internally wraps any implementation into an analysis component, be it a 
reader, AE or consumer. This means, it is possible to declare a reader in an 
AnalysisEngineDescription. This in turn allows us to use the view mapping, 
which we currently do not support for readers. Anyway, uimaFIT should support 
the following code:

-------------------

        AnalysisEngineDescription reader = createPrimitiveDescription(
                TextFileReader.class,
                TextFileReader.PARAM_PATH, "src/test/resources/textfiles",
                TextFileReader.PARAM_LANGUAGE, "la");

        AnalysisEngineDescription tokenizer = createPrimitiveDescription(TokenAnnotator.class);

        AnalysisEngineDescription nameFinder = createPrimitiveDescription(NameAnnotator.class,
                NameAnnotator.PARAM_DICTIONARY_FILE, "src/test/resources/dictionaries/names.txt");

        AnalysisEngineDescription printConsumer = createPrimitiveDescription(PrintConsumer.class);

        AnalysisEngineDescription pipeline = createAggregateDescription(reader, tokenizer, nameFinder, printConsumer);

        AnalysisEngine engine = createAggregate(pipeline);

        CAS cas = engine.newCAS();
        CasIterator i = engine.processAndOutputNewCASes(cas);
        while (i.hasNext()) {
            i.next();
        }

        runPipeline(reader, tokenizer, nameFinder, printConsumer);

-------------------

Actually it does if we remove the generic type constraints in 
AnalysisEngineFactory. But I'd like to use the opportunity to have a second 
look at the API and method names and see what may be simplified.

Original issue reported on code.google.com by richard.eckart on 2 May 2011 at 9:16

GoogleCodeExporter commented 8 years ago
These issues are candidates for version 1.3.0.

Original comment by richard.eckart on 7 May 2011 at 5:31

GoogleCodeExporter commented 8 years ago

Original comment by richard.eckart on 4 Jan 2012 at 10:51

GoogleCodeExporter commented 8 years ago

Original comment by richard.eckart on 5 Jul 2012 at 4:02

GoogleCodeExporter commented 8 years ago

Original comment by richard.eckart on 7 Jan 2013 at 4:51

GoogleCodeExporter commented 8 years ago

Original comment by richard.eckart on 25 Aug 2013 at 8:17

GoogleCodeExporter commented 8 years ago

Original comment by richard.eckart on 25 Aug 2013 at 8:18