On Tue, Feb 4, 2014 at 10:40 PM, Richard Eckart de Castilho <r...@apache.org>wrote:
[...] > The correct mapping for the dictionaryEngine should be > > builder.add(dictionaryEngine, > CAS.NAME_DEFAULT_SOFA, SimpleParserAE.SOFA_NAME_TEXT_ONLY); > > so the SOFA_NAME_TEXT_ONLY is supplied as the default view to the > dictionaryEngine. > > Similarly, it should be possible to remove the view parameter from > whitespaceEngine and the getView call from the consumer and use these > mappings: > > builder.add(preparationEngine); > builder.add(whitespaceEngine, > CAS.NAME_DEFAULT_SOFA, SimpleParserAE.SOFA_NAME_TEXT_ONLY); > builder.add(dictionaryEngine, > CAS.NAME_DEFAULT_SOFA, SimpleParserAE.SOFA_NAME_TEXT_ONLY); > builder.add(casConsumer, > CAS.NAME_DEFAULT_SOFA, SimpleParserAE.SOFA_NAME_TEXT_ONLY); > > Thanks! With your help I managed to made it works. So, to see if I've understood: I have annotator A that read from the "initial view" and write in the view 'BAO' (hardcoded inside the annotator) I could remap the sofa in this way: builder.add(myAnnotator, CAS.NAME_DEFAULT_SOFA, "MyNewFancySofaInput", "BAO", "MyNewFancySofaOutput") I have to say this feature is quite interesting but in fact the type systems are the components generating the real pain... :) Cheers and thanks for your support -- Luca Foppiano Software Engineer +31615253280 l...@foppiano.org www.foppiano.org