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