SequenceFile.Reader reader = new SequenceFile.Reader(conf,
Reader.file(seqFilePath));
Text key = new Text();
CasWritable val = new BinCasWithTypesystemWritable();
while (reader.next(key, val)) {
System.err.println(key + "\t" + val.getCAS().getDocumentText());
}
Hi all, is there any example/snippet how to convert (export) data that are produced by dkpro-bigdata to some standard format that can be later used outside of Hadoop? I experimented a little with parsing SequenceFile but I wasn't sure this is the right way... Thanks! Ivan
--
You received this message because you are subscribed to the Google Groups "dkpro-bigdata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-bigdata-u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,this should work something along the lines (untested):
SequenceFile.Reader reader = new SequenceFile.Reader(conf, Reader.file(seqFilePath)); Text key = new Text(); CasWritable val = new BinCasWithTypesystemWritable(); while (reader.next(key, val)) { System.err.println(key + "\t" + val.getCAS().getDocumentText()); }
-hp
Am 06.03.2014 um 17:06 schrieb Ivan Habernal:
Hi all, is there any example/snippet how to convert (export) data that are produced by dkpro-bigdata to some standard format that can be later used outside of Hadoop? I experimented a little with parsing SequenceFile but I wasn't sure this is the right way... Thanks! Ivan--
You received this message because you are subscribed to the Google Groups "dkpro-bigdata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-bigdata-users+unsub...@googlegroups.com.