public abstract class ConfidencePredictingSequenceModel extends SequenceModel<Label>
Used to provide confidence scores on a per subsequence level.
The exemplar of this is providing a confidence score for each Named Entity present in a SequenceExample.
Modifier and Type | Class and Description |
---|---|
static class |
ConfidencePredictingSequenceModel.Subsequence
A range class used to define a subsequence of a SequenceExample.
|
featureIDMap, name, outputIDMap, provenanceOutput
Modifier | Constructor and Description |
---|---|
protected |
ConfidencePredictingSequenceModel(String name,
ModelProvenance description,
ImmutableFeatureMap featureIDMap,
ImmutableOutputInfo<Label> labelIDMap) |
Modifier and Type | Method and Description |
---|---|
static <SUB extends ConfidencePredictingSequenceModel.Subsequence> |
multiplyWeights(List<Prediction<Label>> predictions,
List<SUB> subsequences)
A scoring method which multiplies together the per prediction scores.
|
abstract <SUB extends ConfidencePredictingSequenceModel.Subsequence> |
scoreSubsequences(SequenceExample<Label> example,
List<Prediction<Label>> predictions,
List<SUB> subsequences)
The scoring function for the subsequences.
|
getFeatureIDMap, getName, getOutputIDInfo, getProvenance, getTopFeatures, predict, predict, predict, setName, toMaxLabels, toString, validate
protected ConfidencePredictingSequenceModel(String name, ModelProvenance description, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<Label> labelIDMap)
public abstract <SUB extends ConfidencePredictingSequenceModel.Subsequence> List<Double> scoreSubsequences(SequenceExample<Label> example, List<Prediction<Label>> predictions, List<SUB> subsequences)
SUB
- The subsequence type.example
- The input sequence example.predictions
- The predictions produced by this model.subsequences
- The subsequences to score.public static <SUB extends ConfidencePredictingSequenceModel.Subsequence> List<Double> multiplyWeights(List<Prediction<Label>> predictions, List<SUB> subsequences)
SUB
- The subsequence type.predictions
- The element level predictions.subsequences
- The subsequences denoting prediction boundaries.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.