public class PreprocessingContext.AllLabels extends Object
All arrays in this class have the same length and values across different arrays correspond to each other for the same index.
| Modifier and Type | Field and Description |
|---|---|
com.carrotsearch.hppc.BitSet[] |
documentIndices
Indices of documents assigned to the label candidate.
|
int[] |
featureIndex
Feature index of the label candidate.
|
int |
firstPhraseIndex
The first index in
featureIndex which
points to PreprocessingContext.AllPhrases, or -1 if there are no phrases
in featureIndex. |
| Constructor and Description |
|---|
PreprocessingContext.AllLabels() |
public int[] featureIndex
PreprocessingContext.AllWords arrays are single word features and point to entries
in PreprocessingContext.AllWords. Features whose values are larger or equal to the size of
PreprocessingContext.AllWords, after subtracting the size of PreprocessingContext.AllWords, point to
PreprocessingContext.AllPhrases.
This array is produced by LabelFilterProcessor.
public com.carrotsearch.hppc.BitSet[] documentIndices
This array is produced by DocumentAssigner.
public int firstPhraseIndex
featureIndex which
points to PreprocessingContext.AllPhrases, or -1 if there are no phrases
in featureIndex.
This value is set by LabelFilterProcessor.
featureIndex