Class Chunk
java.lang.Object
org.tribuo.classification.sgd.crf.Chunk
Chunk class used for chunk level confidence prediction in the
CRFModel
.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
begin
public final int beginThe starting point of this chunk. -
labels
public final int[] labelsThe labels for the next labels.length values.
-
-
Constructor Details
-
Chunk
public Chunk(int begin, int[] labels) Constructs a chunk.- Parameters:
begin
- The starting point of this chunk.labels
- The chunk labels.
-
-
Method Details
-
unpack
public void unpack(int[] constraints) Copies the labels into the constraints array starting atbegin
.- Parameters:
constraints
- The constraints array.
-