public void addFiller (LabeledSpan span) { if (name != span.getLabel ()) throw new IllegalArgumentException ("Attempt to fill slot "+name+" with a span of type "+span.getLabel ()); values.add (span.getText ()); allSpans.add (span); }
public void addFiller (LabeledSpan span) { if (name != span.getLabel ()) throw new IllegalArgumentException ("Attempt to fill slot "+name+" with a span of type "+span.getLabel ()); values.add (span.getText ()); allSpans.add (span); }
public void addFiller (LabeledSpan span) { if (name != span.getLabel ()) throw new IllegalArgumentException ("Attempt to fill slot "+name+" with a span of type "+span.getLabel ()); values.add (span.getText ()); allSpans.add (span); }
childElts.add (new Text (childSpan.getText())); } else { String name = childLabel.getEntry ().toString();
childElts.add (new Text (childSpan.getText())); } else { String name = childLabel.getEntry ().toString();
childElts.add (new Text (childSpan.getText())); } else { String name = childLabel.getEntry ().toString();
boolean correct = (trueField != null && trueField.isValue (predField.value (j), comparator)); entityConfidences.add(new ConfidenceEvaluator.EntityConfidence (span.getConfidence(), correct, span.getText())); if (correct) numCorrValues++;
boolean correct = (trueField != null && trueField.isValue (predField.value (j), comparator)); entityConfidences.add(new ConfidenceEvaluator.EntityConfidence (span.getConfidence(), correct, span.getText())); if (correct) numCorrValues++;
boolean correct = (trueField != null && trueField.isValue (predField.value (j), comparator)); entityConfidences.add(new ConfidenceEvaluator.EntityConfidence (span.getConfidence(), correct, span.getText())); if (correct) numCorrValues++;