use of edu.illinois.cs.cogcomp.verbsense.jlis.SentenceInstance in project cogcomp-nlp by CogComp.
the class SenseExampleGenerator method getExamples.
public Pair<SentenceInstance, SentenceStructure> getExamples(TextAnnotation ta) throws Exception {
List<SenseInstance> predicates = new ArrayList<>();
List<SenseStructure> structures = new ArrayList<>();
if (ta.hasView(SenseManager.getGoldViewName()))
getTreebankExamples(ta, predicates, structures);
else
getExamples(ta, predicates);
SentenceInstance sx = new SentenceInstance(predicates);
SentenceStructure sy = new SentenceStructure(sx, structures);
return new Pair<>(sx, sy);
}
Aggregations