struct.sequence
Class SequencePredictor.KBestSequence

java.lang.Object
  extended by struct.sequence.SequencePredictor.KBestSequence
Enclosing class:
SequencePredictor

private class SequencePredictor.KBestSequence
extends java.lang.Object

KBestSequence.


Field Summary
private  SequencePredictor.SequenceItem[][][] chart
           
private  int K
           
private  int num_tags
           
private  edu.umass.cs.mallet.base.types.Alphabet tagAlphabet
           
 
Constructor Summary
private SequencePredictor.KBestSequence(edu.umass.cs.mallet.base.types.Alphabet tagAlphabet, SequenceInstance inst, int K)
           
 
Method Summary
private  int add(int n, int e, double prob, SLFeatureVector fv, SequencePredictor.SequenceItem prev, int strt)
           
private  SequencePrediction getBestSequences()
           
private  java.lang.String getEntString(SequencePredictor.SequenceItem si)
           
private  SLFeatureVector getFeatureVector(SequencePredictor.SequenceItem si)
           
private  SequencePredictor.SequenceItem getItem(int n, int e)
           
private  SequencePredictor.SequenceItem getItem(int n, int e, int i)
           
private  SequencePredictor.SequenceItem[] getItems(int n, int e)
           
private  double getProb(int n, int e)
           
private  double getProb(int n, int e, int i)
           
private  double[] getProbs(int n, int e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chart

private SequencePredictor.SequenceItem[][][] chart

K

private int K

num_tags

private int num_tags

tagAlphabet

private edu.umass.cs.mallet.base.types.Alphabet tagAlphabet
Constructor Detail

SequencePredictor.KBestSequence

private SequencePredictor.KBestSequence(edu.umass.cs.mallet.base.types.Alphabet tagAlphabet,
                                        SequenceInstance inst,
                                        int K)
Method Detail

add

private int add(int n,
                int e,
                double prob,
                SLFeatureVector fv,
                SequencePredictor.SequenceItem prev,
                int strt)

getProb

private double getProb(int n,
                       int e)

getProb

private double getProb(int n,
                       int e,
                       int i)

getProbs

private double[] getProbs(int n,
                          int e)

getItem

private SequencePredictor.SequenceItem getItem(int n,
                                               int e)

getItem

private SequencePredictor.SequenceItem getItem(int n,
                                               int e,
                                               int i)

getItems

private SequencePredictor.SequenceItem[] getItems(int n,
                                                  int e)

getBestSequences

private SequencePrediction getBestSequences()

getFeatureVector

private SLFeatureVector getFeatureVector(SequencePredictor.SequenceItem si)

getEntString

private java.lang.String getEntString(SequencePredictor.SequenceItem si)


Copyright (C) 2006 University of Pennsylvania.