calhoun.analysis.crf.solver
Class CacheProcessor.FeatureEvaluation

java.lang.Object
  extended by calhoun.analysis.crf.solver.CacheProcessor.FeatureEvaluation
Enclosing interface:
CacheProcessor

public static class CacheProcessor.FeatureEvaluation
extends java.lang.Object

This class holds the feature evaluations for a given position, or position/length combination. There are two arrays, one to hold the feature indicies, and the other to hold the values. Each array is two-dimensional. The first dimension is fixed length and contains one entry for each potential (node or edge) in the model. The potentials are in model order, with each node followed by all transitions into that node. The second dimension is variable length and contains a information on feature evaluations for that potential. In the second dimension, each list of evaluations is terminated by a -1 in the index column.


Field Summary
 short[] index
           
 float[] value
           
 
Method Summary
static CacheProcessor.FeatureEvaluation[] create(int nPotentials, int featureSize)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

public short[] index

value

public float[] value
Method Detail

create

public static CacheProcessor.FeatureEvaluation[] create(int nPotentials,
                                                        int featureSize)