ArrayList outcomes = (ArrayList)p.b;
ArrayList tags = new ArrayList();
for (int i=0; i<tokens.size(); i++) {
String[] context = cg.getContext(i,tokens.toArray(),(String[]) tags.toArray(new String[tags.size()]),null);
Event e = new Event((String)outcomes.get(i), context);
tags.add(outcomes.get(i));
elist.add(e);
}
s = br.readLine();
}
} catch (Exception e) { e.printStackTrace(); }
Event[] events = new Event[elist.size()];
for(int i=0; i<events.length; i++)
events[i] = (Event)elist.get(i);