public class EmpiricalNERPriorBIO<IN extends CoreMap> extends EntityCachingAbstractSequencePriorBIO<IN>
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
protected int |
LOCIndex |
protected int |
ORGIndex |
protected double |
p1 |
protected double |
p2 |
backgroundSymbol, classIndex, numClasses, possibleValues, sequence, tagIndex
Constructor and Description |
---|
EmpiricalNERPriorBIO(String backgroundSymbol,
Index<String> classIndex,
Index<String> tagIndex,
List<IN> doc,
Pair<double[][],double[][]> matrices,
SeqClassifierFlags flags) |
Modifier and Type | Method and Description |
---|---|
double |
scoreOf(int[] sequence)
Computes the score assigned by this model to the whole sequence.
|
extractEntity, getConditionalDistribution, getNumClasses, getPossibleValues, leftWindow, length, matches, otherOccurrences, rightWindow, scoreOf, scoresOf, setInitialSequence, toArray, toString, toString, updateSequenceElement
protected double p1
protected double p2
protected int ORGIndex
protected int LOCIndex
public static boolean DEBUG
public double scoreOf(int[] sequence)
SequenceModel
sequence
- The sequence of labels to compute a score for