edu.stanford.nlp.ie
Class EmpiricalNERPrior<IN extends CoreMap>

java.lang.Object
  extended by edu.stanford.nlp.ie.EntityCachingAbstractSequencePrior<IN>
      extended by edu.stanford.nlp.ie.EmpiricalNERPrior<IN>
All Implemented Interfaces:
SequenceListener, SequenceModel

public class EmpiricalNERPrior<IN extends CoreMap>
extends EntityCachingAbstractSequencePrior<IN>

Author:
Jenny Finkel

Field Summary
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  java.lang.String LOC
           
protected  java.lang.String MISC
           
protected  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  java.lang.String PER
           
 
Fields inherited from class edu.stanford.nlp.ie.EntityCachingAbstractSequencePrior
backgroundSymbol, classIndex, doc, numClasses, possibleValues, sequence
 
Constructor Summary
EmpiricalNERPrior(java.lang.String backgroundSymbol, Index<java.lang.String> classIndex, java.util.List<IN> doc)
           
 
Method Summary
 double scoreOf(int[] sequence)
          Computes the score assigned by this model to the whole sequence.
 
Methods inherited from class edu.stanford.nlp.ie.EntityCachingAbstractSequencePrior
addingSingletonEntity, appendingEntity, extractEntity, getConditionalDistribution, getNumClasses, getPossibleValues, joiningTwoEntities, leftWindow, length, matches, noChange, otherOccurrences, prependingEntity, removingBeginningOfEntity, removingEndOfEntity, rightWindow, scoreOf, scoresOf, setInitialSequence, splittingTwoEntities, toArray, toString, toString, updateSequenceElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ORG

protected java.lang.String ORG

PER

protected java.lang.String PER

LOC

protected java.lang.String LOC

MISC

protected java.lang.String MISC

p1

protected double p1

dem1

protected double dem1

p2

protected double p2

p3

protected double p3

p4

protected double p4

p5

protected double p5

dem2

protected double dem2

p6

protected double p6

p7

protected double p7

p8

protected double p8

p9

protected double p9

dem3

protected double dem3

p10

protected double p10

p11

protected double p11

p12

protected double p12

p13

protected double p13

dem4

protected double dem4

p14

protected double p14

p15

protected double p15

p16

protected double p16

p17

protected double p17

dem5

protected double dem5

p18

protected double p18

p19

protected double p19

p20

protected double p20

p21

protected double p21

dem6

protected double dem6

p22

protected double p22

p23

protected double p23

p24

protected double p24

p25

protected double p25

dem7

protected double dem7

p26

protected double p26

p27

protected double p27

p28

protected double p28

p29

protected double p29

dem8

protected double dem8

p30

protected double p30

p31

protected double p31

p32

protected double p32

p33

protected double p33
Constructor Detail

EmpiricalNERPrior

public EmpiricalNERPrior(java.lang.String backgroundSymbol,
                         Index<java.lang.String> classIndex,
                         java.util.List<IN> doc)
Method Detail

scoreOf

public double scoreOf(int[] sequence)
Description copied from interface: SequenceModel
Computes the score assigned by this model to the whole sequence. Typically this will be an unnormalized probability in log space (since the probabilities are small).

Parameters:
sequence - the sequence to compute a score for
Returns:
the score for the sequence


Stanford NLP Group