C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GetTokenPositioner() публичный абстрактный Метод

Retrieves information on how a Token is to be inserted to a ShingleMatrixFilter.Matrix.
public abstract GetTokenPositioner ( Token token ) : TokenPositioner
token Token
Результат TokenPositioner

GetWeight() публичный абстрактный Метод

Have this method return 1f in order to 'disable' weights.
public abstract GetWeight ( Token token ) : float
token Token
Результат float

SetTokenPositioner() публичный абстрактный Метод

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
Результат void

SetWeight() публичный абстрактный Метод

Have this method do nothing in order to 'disable' weights.
public abstract SetWeight ( Token token, float weight ) : void
token Token
weight float
Результат void