C# Class Lucene.Net.Analysis.Shingle.Codec.TokenSettingsCodec

Strategy used to code and decode meta data of the tokens from the input stream regarding how to position the tokens in the matrix, set and retreive weight, etc.
Mostrar archivo Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
GetTokenPositioner ( Token token ) : TokenPositioner

Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.

GetWeight ( Token token ) : float

Have this method return 1f in order to 'disable' weights.

SetTokenPositioner ( Token token, TokenPositioner tokenPositioner ) : void

Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.

SetWeight ( Token token, float weight ) : void

Have this method do nothing in order to 'disable' weights.

Method Details

GetTokenPositioner() public abstract method

Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.
public abstract GetTokenPositioner ( Token token ) : TokenPositioner
token Token
return TokenPositioner

GetWeight() public abstract method

Have this method return 1f in order to 'disable' weights.
public abstract GetWeight ( Token token ) : float
token Token
return float

SetTokenPositioner() public abstract method

Sets information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.
public abstract SetTokenPositioner ( Token token, TokenPositioner tokenPositioner ) : void
token Token
tokenPositioner TokenPositioner
return void

SetWeight() public abstract method

Have this method do nothing in order to 'disable' weights.
public abstract SetWeight ( Token token, float weight ) : void
token Token
weight float
return void