public static class ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec extends ShingleMatrixFilter.TokenSettingsCodec
Constructor and Description |
---|
ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec() |
Modifier and Type | Method and Description |
---|---|
ShingleMatrixFilter.TokenPositioner |
getTokenPositioner(Token token)
Retrieves information on how a
Token is to be inserted to a ShingleMatrixFilter.Matrix . |
float |
getWeight(Token token)
Have this method return 1f in order to 'disable' weights.
|
void |
setTokenPositioner(Token token,
ShingleMatrixFilter.TokenPositioner tokenPositioner)
Sets information on how a
Token is to be inserted to a ShingleMatrixFilter.Matrix . |
void |
setWeight(Token token,
float weight)
Have this method do nothing in order to 'disable' weights.
|
public ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodec()
public ShingleMatrixFilter.TokenPositioner getTokenPositioner(Token token) throws IOException
ShingleMatrixFilter.TokenSettingsCodec
Token
is to be inserted to a ShingleMatrixFilter.Matrix
.getTokenPositioner
in class ShingleMatrixFilter.TokenSettingsCodec
ShingleMatrixFilter.TokenPositioner
IOException
public void setTokenPositioner(Token token, ShingleMatrixFilter.TokenPositioner tokenPositioner)
ShingleMatrixFilter.TokenSettingsCodec
Token
is to be inserted to a ShingleMatrixFilter.Matrix
.setTokenPositioner
in class ShingleMatrixFilter.TokenSettingsCodec
public float getWeight(Token token)
ShingleMatrixFilter.TokenSettingsCodec
getWeight
in class ShingleMatrixFilter.TokenSettingsCodec
public void setWeight(Token token, float weight)
ShingleMatrixFilter.TokenSettingsCodec
setWeight
in class ShingleMatrixFilter.TokenSettingsCodec