/** Finds the lexical items used to produce the highest scoring parse. */ public List getMaxLexEntries() { List result = new LinkedList(); for (ParseResult p : bestParses) { result.addAll(p.getLexEntries()); } return result; }
/** Finds the lexical items used to produce the highest scoring parse with semantics sem. */ public List getMaxLexEntriesFor(Exp sem) { List result = new LinkedList(); for (ParseResult p : findBestParses(allParses, sem)) { result.addAll(p.getLexEntries()); } return result; }