new PredicateArgumentView(this.predicateArgumentViewName, "GoldStandard", ta, 1.0);
new PredicateArgumentView(this.predicateArgumentViewName, "GoldStandard", ta, 1.0);
new PredicateArgumentView(ViewNames.SRL_VERB, "GoldStandard", ta, 1.0);
new PredicateArgumentView(ViewNames.SRL_VERB, "GoldStandard", ta, 1.0);
@Override public List<XmlTextAnnotation> getAnnotationsFromFile(List<Path> corpusFileListEntry) throws Exception { XmlTextAnnotation xmlTa = super.getAnnotationsFromFile(corpusFileListEntry).get(0); TextAnnotation sourceTa = xmlTa.getTextAnnotation(); // SpanLabelView tokens = (SpanLabelView)sourceTa.getView(ViewNames.TOKENS); View mentionView = sourceTa.getView(getMentionViewName()); if (null == mentionView) throw new IllegalStateException("View '" + getMentionViewName() + "' (mention view) not found."); PredicateArgumentView eventView = new PredicateArgumentView(getEventViewName(), NAME, sourceTa, 1.0); // process one or more files containing stand-off annotations for (int i = 1; i < corpusFileListEntry.size(); ++i) { Document doc = SimpleXMLParser.getDocument(corpusFileListEntry.get(i).toFile()); getEventsFromFile(doc, eventView, xmlTa); } sourceTa.addView(getEventViewName(), eventView); return Collections.singletonList(xmlTa); }
@Override public List<XmlTextAnnotation> getAnnotationsFromFile(List<Path> corpusFileListEntry) throws Exception { XmlTextAnnotation xmlTa = super.getAnnotationsFromFile(corpusFileListEntry).get(0); TextAnnotation sourceTa = xmlTa.getTextAnnotation(); // SpanLabelView tokens = (SpanLabelView)sourceTa.getView(ViewNames.TOKENS); View mentionView = sourceTa.getView(getMentionViewName()); if (null == mentionView) throw new IllegalStateException("View '" + getMentionViewName() + "' (mention view) not found."); PredicateArgumentView eventView = new PredicateArgumentView(getEventViewName(), NAME, sourceTa, 1.0); // process one or more files containing stand-off annotations for (int i = 1; i < corpusFileListEntry.size(); ++i) { Document doc = SimpleXMLParser.getDocument(corpusFileListEntry.get(i).toFile()); getEventsFromFile(doc, eventView, xmlTa); } sourceTa.addView(getEventViewName(), eventView); return Collections.singletonList(xmlTa); }
private void populateAttribution(TextAnnotation ta, Map<String, AttributionRelation> attrRelations) { PredicateArgumentView attrRelationView = new PredicateArgumentView(VIEW_NAME, "Gold-PARC3", ta , 1.0D);
private void populateAttribution(TextAnnotation ta, Map<String, AttributionRelation> attrRelations) { PredicateArgumentView attrRelationView = new PredicateArgumentView(VIEW_NAME, "Gold-PARC3", ta , 1.0D);
new PredicateArgumentView(srlViewName, "AnnotatedTreebank", ta, 1.0);
new PredicateArgumentView(srlViewName, "AnnotatedTreebank", ta, 1.0);
PredicateArgumentView prepositionLabelView = new PredicateArgumentView(viewName, viewName + "-annotator", ta, 1.0);
PredicateArgumentView prepositionLabelView = new PredicateArgumentView(viewName, viewName + "-annotator", ta, 1.0);
public static PredicateArgumentView alignForestToPredicateArgumentView(String viewName, TextAnnotation ta, Forest forest) { if (forest == null) return new PredicateArgumentView(viewName, "", ta, 1.0); source = forest.getSource(); PredicateArgumentView pav = new PredicateArgumentView(viewName, source, ta, 1.0);
public static PredicateArgumentView alignForestToPredicateArgumentView(String viewName, TextAnnotation ta, Forest forest) { if (forest == null) return new PredicateArgumentView(viewName, "", ta, 1.0); source = forest.getSource(); PredicateArgumentView pav = new PredicateArgumentView(viewName, source, ta, 1.0);
public static PredicateArgumentView alignForestToPredicateArgumentView(String viewName, TextAnnotation ta, Forest forest) { if (forest == null) return new PredicateArgumentView(viewName, "", ta, 1.0); source = forest.getSource(); PredicateArgumentView pav = new PredicateArgumentView(viewName, source, ta, 1.0);
public PredicateArgumentView getView(SRLManager manager, TextAnnotation ta) { String viewName = manager.getPredictedViewName(); PredicateArgumentView pav = new PredicateArgumentView(viewName, manager.getSRLSystemIdentifier(), ta, 1.0);
newVu = new CoreferenceView(vu.viewName, vu.viewGenerator, newTA, vu.score); } else if (vu instanceof PredicateArgumentView) { newVu = new PredicateArgumentView(vu.viewName, vu.viewGenerator, newTA, vu.score); } else if (vu instanceof TreeView) { newVu = new TreeView(vu.viewName, vu.viewGenerator, newTA, vu.score);
newVu = new CoreferenceView(vu.viewName, vu.viewGenerator, newTA, vu.score); } else if (vu instanceof PredicateArgumentView) { newVu = new PredicateArgumentView(vu.viewName, vu.viewGenerator, newTA, vu.score); } else if (vu instanceof TreeView) { newVu = new TreeView(vu.viewName, vu.viewGenerator, newTA, vu.score);
new PredicateArgumentView(viewName, "illinois-comma", ta, 1.0d); for (Comma comma : sentence.getCommas()) { String label = classifier.discreteValue(comma);
new PredicateArgumentView(viewName, "illinois-comma", ta, 1.0d); for (Comma comma : sentence.getCommas()) { String label = classifier.discreteValue(comma);