public class EmpiricalNERPrior<IN extends CoreMap> extends EntityCachingAbstractSequencePrior<IN>
Modifier and Type | Field and Description |
---|---|
protected double |
dem1 |
protected double |
dem2 |
protected double |
dem3 |
protected double |
dem4 |
protected double |
dem5 |
protected double |
dem6 |
protected double |
dem7 |
protected double |
dem8 |
protected static java.lang.String |
LOC |
protected static java.lang.String |
MISC |
protected static java.lang.String |
ORG |
protected double |
p1 |
protected double |
p10 |
protected double |
p11 |
protected double |
p12 |
protected double |
p13 |
protected double |
p14 |
protected double |
p15 |
protected double |
p16 |
protected double |
p17 |
protected double |
p18 |
protected double |
p19 |
protected double |
p2 |
protected double |
p20 |
protected double |
p21 |
protected double |
p22 |
protected double |
p23 |
protected double |
p24 |
protected double |
p25 |
protected double |
p26 |
protected double |
p27 |
protected double |
p28 |
protected double |
p29 |
protected double |
p3 |
protected double |
p30 |
protected double |
p31 |
protected double |
p32 |
protected double |
p33 |
protected double |
p4 |
protected double |
p5 |
protected double |
p6 |
protected double |
p7 |
protected double |
p8 |
protected double |
p9 |
protected static java.lang.String |
PER |
backgroundSymbol, classIndex, doc, numClasses, possibleValues, sequence
Constructor and Description |
---|
EmpiricalNERPrior(java.lang.String backgroundSymbol,
Index<java.lang.String> classIndex,
java.util.List<IN> doc) |
Modifier and Type | Method and Description |
---|---|
double |
scoreOf(int[] sequence)
Computes the score assigned by this model to the whole sequence.
|
addingSingletonEntity, appendingEntity, extractEntity, getConditionalDistribution, getNumClasses, getPossibleValues, joiningTwoEntities, leftWindow, length, matches, noChange, otherOccurrences, prependingEntity, removingBeginningOfEntity, removingEndOfEntity, rightWindow, scoreOf, scoresOf, setInitialSequence, splittingTwoEntities, toArray, toString, toString, updateSequenceElement
protected static final java.lang.String ORG
protected static final java.lang.String PER
protected static final java.lang.String LOC
protected static final java.lang.String MISC
protected double p1
protected double dem1
protected double p2
protected double p3
protected double p4
protected double p5
protected double dem2
protected double p6
protected double p7
protected double p8
protected double p9
protected double dem3
protected double p10
protected double p11
protected double p12
protected double p13
protected double dem4
protected double p14
protected double p15
protected double p16
protected double p17
protected double dem5
protected double p18
protected double p19
protected double p20
protected double p21
protected double dem6
protected double p22
protected double p23
protected double p24
protected double p25
protected double dem7
protected double p26
protected double p27
protected double p28
protected double p29
protected double dem8
protected double p30
protected double p31
protected double p32
protected double p33
public double scoreOf(int[] sequence)
SequenceModel
sequence
- The sequence of labels to compute a score for