public abstract static class ShingleMatrixFilter.TokenSettingsCodec
extends java.lang.Object
| Constructor and Description |
|---|
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 abstract ShingleMatrixFilter.TokenPositioner getTokenPositioner(Token token) throws java.io.IOException
Token is to be inserted to a ShingleMatrixFilter.Matrix.token - ShingleMatrixFilter.TokenPositionerjava.io.IOExceptionpublic 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 - Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.