for(int i=0;i<numDocs/2;i++) {
events.add(docToEvent(ir, i, c));
}
DataIndexer di = null;
di = new TwoPassDataIndexer(new EventCollectorAsStream(new SimpleEventCollector(events)), 3);
GISModel gm = GIS.trainModel(100, di);
Map<String,Double> byProb = new HashMap<String,Double>();
Map<String,String> res = new HashMap<String,String>();
int mp = 0;