Hi,

in DKPro Core we have a CombinationReader that should do what you want:
https://github.com/dkpro/dkpro-core/blob/master/dkpro-core-io-combination-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/io/combination/CombinationReader.java

-Torsten

On 20/02/17 16:32, "Oliver Ferschke" <[email protected]> wrote:

    Hi Wahed,
    I  think it's by design always a single reader.
    You could write a meta-reader that determines the file type and then calls 
the appropriate process method.
    Or you could simply run a tei-to-xmi conversion pipeline first and then 
just process xmi in your actual pipeline.
    Kind of depends on how often you'll have to run this.
    
    -Oliver
    
    -----Original Message-----
    From: Wahed Hemati [mailto:[email protected]] 
    Sent: Monday, February 20, 2017 10:13 AM
    To: [email protected]
    Subject: Merge two Collection Reader
    
    Hi,
    
    is it possible to combine two collectionreader in one Pipeline. (e.g. 
    SimplePipeline.runPipeline(xmireader, teireader, 
builder.createAggregateDescription()); )
    
    I want to calculate TF-IDF values from two different sources as one 
Collection.
    
    Thanks in advance.
    
    Beste
    
    - Wahed
    
    

Reply via email to