Configuration conf = IntegrationUtils.getBespinConfiguration();
FileSystem fs = FileSystem.get(conf);
SequenceFile.Reader reader;
IntWritable key = new IntWritable();
HMapSFW value = new HMapSFW();
reader = new SequenceFile.Reader(fs.getConf(),
SequenceFile.Reader.file(new Path(opennlpIndex + "/test_wt-term-doc-vectors/part-00000")));
reader.next(key, value);
System.out.println("*** top 10 terms ***");
for (MapKF.Entry<String> entry : value.getEntriesSortedByValue(10)) {
System.out.println(entry.getKey() + ": " + entry.getValue());
}
verifyTermDocVector(opennlpTermDocVector1, value);
reader.next(key, value);
System.out.println("*** top 10 terms ***");
for (MapKF.Entry<String> entry : value.getEntriesSortedByValue(10)) {
System.out.println(entry.getKey() + ": " + entry.getValue());
}
verifyTermDocVector(opennlpTermDocVector2, value);
reader.close();
}