List<ExtractionObject> convertedArgs = new ArrayList<ExtractionObject>();
int left = Integer.MAX_VALUE;
int right = Integer.MIN_VALUE;
for(String role: roles){
AceEntityMention arg = aceEventMention.getArg(role);
ExtractionObject o = entityMap.get(arg.getId());
if(o == null){
logger.severe("READER ERROR: Failed to find event argument with id " + arg.getId());
logger.severe("This happens because a few event mentions illegally span multiple sentences. Will ignore this mention.");
return null;
}
convertedArgs.add(o);
if(o.getExtentTokenStart() < left) left = o.getExtentTokenStart();