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.
Afficher le fichier Open project: synhershko/lucene.net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GetWeight() public abstract méthode

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

SetTokenPositioner() public abstract méthode

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
Résultat void

SetWeight() public abstract méthode

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