ShingleMatrixFilter.OneDimensionalNonWeightedTokenSettingsCodec, ShingleMatrixFilter.SimpleThreeDimensionalTokenSettingsCodec, ShingleMatrixFilter.TwoDimensionalNonWeightedSynonymTokenSettingsCodecpublic abstract static class ShingleMatrixFilter.TokenSettingsCodec extends Object
| Constructor | Description |
|---|---|
TokenSettingsCodec() |
| Modifier and Type | Method | 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 IOException
Token is to be inserted to a ShingleMatrixFilter.Matrix.token - ShingleMatrixFilter.TokenPositionerIOExceptionpublic 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-2018 Apache Software Foundation. All Rights Reserved.