public static class MetaObjectProfiSCT.MultiWeightIgnoreProviderProfi 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 |
---|
MetaObjectProfiSCT.MultiWeightIgnoreProviderProfi(float[] weights,
float ignoreWeight,
java.lang.String[] ignoredKeywords,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> keyWordIndex)
Creates a new instance of MultiWeightProvider with the the given array of weights.
|
getWeight, getWeightNorm, getWeightSum
getWeight, getWeights
public MetaObjectProfiSCT.MultiWeightIgnoreProviderProfi(float[] weights, float ignoreWeight, java.lang.String[] ignoredKeywords, Stemmer stemmer, IntStorageIndexed<java.lang.String> keyWordIndex) throws TextConversionException
weights
- the weights for the data arraysignoreWeight
- weight used for the ignoredKeywords
ignoredKeywords
- array of keywords to be ignored (before stemming and other corrections)stemmer
- a Stemmer
for word transformationkeyWordIndex
- typically database storage to convert keywords to IDs and other parametersTextConversionException
- if there was an error stemming the word