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.
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
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