public static class MetaObjectPixMacSCT.MultiWeightIgnoreProviderPixMac extends ObjectIntMultiVector.MultiWeightIgnoreProvider
ObjectIntMultiVector.WeightProvider
that has a single weight for every data array of the ObjectIntMultiVector
and it ignores a specified list of integers (created from a given list of keywords).weights
Constructor and Description |
---|
MetaObjectPixMacSCT.MultiWeightIgnoreProviderPixMac(float[] weights,
float ignoreWeight,
java.lang.String[] ignoredKeywords,
IntStorageIndexed<java.lang.String> keyWordIndex)
Creates a new instance of MultiWeightProvider with the the given array of weights.
|
getWeight, getWeightNorm, getWeightSum
getWeight, getWeights
public MetaObjectPixMacSCT.MultiWeightIgnoreProviderPixMac(float[] weights, float ignoreWeight, java.lang.String[] ignoredKeywords, IntStorageIndexed<java.lang.String> keyWordIndex)
weights
- the weights for the data arraysignoreWeight
- weight used for the ignoredKeywords
ignoredKeywords
- array of keywords to be ignored (before stemming and other corrections)keyWordIndex
- typically database storage to convert keywords to IDs and other parameters