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(java.lang.String backgroundSymbol,
Index<java.lang.String> classIndex,
Index<java.lang.String> tagIndex,
java.util.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, updateSequenceElementprotected double p1
protected double p2
protected int ORGIndex
protected int LOCIndex
public static boolean DEBUG
public EmpiricalNERPriorBIO(java.lang.String backgroundSymbol,
Index<java.lang.String> classIndex,
Index<java.lang.String> tagIndex,
java.util.List<IN> doc,
Pair<double[][],double[][]> matrices,
SeqClassifierFlags flags)
public double scoreOf(int[] sequence)
SequenceModelsequence - The sequence of labels to compute a score for