public DocumentExtraction (String name, LabelAlphabet dict, Tokenization input, LabeledSpans predictedSpans, LabeledSpans trueSpans, String background) { this.document = input.getDocument (); this.name = name; this.backgroundTag = dict.lookupLabel (background); this.input = input; this.extractedSpans = predictedSpans; this.targetSpans = trueSpans; }
public DocumentExtraction (String name, LabelAlphabet dict, Tokenization input, LabeledSpans predictedSpans, LabeledSpans trueSpans, String background) { this.document = input.getDocument (); this.name = name; this.backgroundTag = dict.lookupLabel (background); this.input = input; this.extractedSpans = predictedSpans; this.targetSpans = trueSpans; }
public DocumentExtraction (String name, LabelAlphabet dict, Tokenization input, LabeledSpans predictedSpans, LabeledSpans trueSpans, String background) { this.document = input.getDocument (); this.name = name; this.backgroundTag = dict.lookupLabel (background); this.input = input; this.extractedSpans = predictedSpans; this.targetSpans = trueSpans; }
public DocumentExtraction (String name, LabelAlphabet dict, Tokenization input, Sequence predicted, Sequence target, String background, TokenizationFilter filter) { this.document = input.getDocument (); this.name = name; assert (input.size() == predicted.size()); this.backgroundTag = dict.lookupLabel (background); this.input = input; this.predictedLabels = predicted; this.extractedSpans = filter.constructLabeledSpans (dict, document, backgroundTag, input, predicted); if (target != null) { if (target instanceof LabelSequence) this.target = (LabelSequence) target; this.targetSpans = filter.constructLabeledSpans (dict, document, backgroundTag, input, target); } }
public DocumentExtraction (String name, LabelAlphabet dict, Tokenization input, Sequence predicted, Sequence target, String background, TokenizationFilter filter) { this.document = input.getDocument (); this.name = name; assert (input.size() == predicted.size()); this.backgroundTag = dict.lookupLabel (background); this.input = input; this.predictedLabels = predicted; this.extractedSpans = filter.constructLabeledSpans (dict, document, backgroundTag, input, predicted); if (target != null) { if (target instanceof LabelSequence) this.target = (LabelSequence) target; this.targetSpans = filter.constructLabeledSpans (dict, document, backgroundTag, input, target); } }
public DocumentExtraction (String name, LabelAlphabet dict, Tokenization input, Sequence predicted, Sequence target, String background, TokenizationFilter filter) { this.document = input.getDocument (); this.name = name; assert (input.size() == predicted.size()); this.backgroundTag = dict.lookupLabel (background); this.input = input; this.predictedLabels = predicted; this.extractedSpans = filter.constructLabeledSpans (dict, document, backgroundTag, input, predicted); if (target != null) { if (target instanceof LabelSequence) this.target = (LabelSequence) target; this.targetSpans = filter.constructLabeledSpans (dict, document, backgroundTag, input, target); } }