Constituent cueC = new Constituent(LABEL_CUE, attrRelationView.getViewName(), ta, cue.getFirst(), cue.getSecond()); cueC.addAttribute(CON_ATTR_REL_ID, relationId); Constituent con = new Constituent(LABEL_CONTENT, attrRelationView.getViewName(), ta, c.getFirst(), c.getSecond()); con.addAttribute(CON_ATTR_REL_ID, relationId); return con; Constituent con = new Constituent(LABEL_SOURCE, attrRelationView.getViewName(), ta, c.getFirst(), c.getSecond()); con.addAttribute(CON_ATTR_REL_ID, relationId); ta.addView(attrRelationView.getViewName(), attrRelationView);
Constituent cueC = new Constituent(LABEL_CUE, attrRelationView.getViewName(), ta, cue.getFirst(), cue.getSecond()); cueC.addAttribute(CON_ATTR_REL_ID, relationId); Constituent con = new Constituent(LABEL_CONTENT, attrRelationView.getViewName(), ta, c.getFirst(), c.getSecond()); con.addAttribute(CON_ATTR_REL_ID, relationId); return con; Constituent con = new Constituent(LABEL_SOURCE, attrRelationView.getViewName(), ta, c.getFirst(), c.getSecond()); con.addAttribute(CON_ATTR_REL_ID, relationId); ta.addView(attrRelationView.getViewName(), attrRelationView);
Constituent predicate = new Constituent(label, srlView.getViewName(), ta, constituent.getStartSpan(), constituent.getEndSpan()); predicate.addAttribute(PredicateArgumentView.LemmaIdentifier, constituent.getSurfaceForm()); predicate.addAttribute(PredicateArgumentView.SenseIdentifer, node.getSense()); PredicateArgument a = arguments.get(i); String rclabel = arg; Constituent rc = new Constituent(rclabel, srlView.getViewName(), ta, a.pair.getFirst(), a.pair.getSecond());
Constituent predicate = new Constituent(label, srlView.getViewName(), ta, constituent.getStartSpan(), constituent.getEndSpan()); predicate.addAttribute(PredicateArgumentView.LemmaIdentifier, constituent.getSurfaceForm()); predicate.addAttribute(PredicateArgumentView.SenseIdentifer, node.getSense()); PredicateArgument a = arguments.get(i); String rclabel = arg; Constituent rc = new Constituent(rclabel, srlView.getViewName(), ta, a.pair.getFirst(), a.pair.getSecond());
logger.error("Error! Overlapping spans in " + view.getViewName() + "\n" + view.getTextAnnotation() + "\n" + view);
logger.error("Error! Overlapping spans in " + view.getViewName() + "\n" + view.getTextAnnotation() + "\n" + view);