C# Класс Lucene.Net.Analysis.Shingle.ShingleFilter.CircularSequence

An instance of this class is used to maintain the number of input stream tokens that will be used to compose the next unigram or shingle: #gramSize.

gramSize will take on values from the circular sequence { [ 1, ] #minShingleSize [ , ... , #maxShingleSize ] }.

1 is included in the circular sequence only if #outputUnigrams = true.

Показать файл Открыть проект

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

Метод Описание
CircularSequence ( ShingleFilter outerInstance ) : System
advance ( ) : void

Increments this circular number's value to the next member in the circular sequence gramSize will take on values from the circular sequence { [ 1, ] #minShingleSize [ , ... , #maxShingleSize ] }.

1 is included in the circular sequence only if #outputUnigrams = true.

atMinValue ( ) : bool

Returns true if the current value is the first member of the circular sequence.

If #outputUnigrams = true, the first member of the circular sequence will be 1; otherwise, it will be #minShingleSize.

reset ( ) : void

Sets this circular number's value to the first member of the circular sequence

gramSize will take on values from the circular sequence { [ 1, ] #minShingleSize [ , ... , #maxShingleSize ] }.

1 is included in the circular sequence only if #outputUnigrams = true.

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

CircularSequence() публичный Метод

public CircularSequence ( ShingleFilter outerInstance ) : System
outerInstance ShingleFilter
Результат System

advance() публичный Метод

Increments this circular number's value to the next member in the circular sequence gramSize will take on values from the circular sequence { [ 1, ] #minShingleSize [ , ... , #maxShingleSize ] }.

1 is included in the circular sequence only if #outputUnigrams = true.

public advance ( ) : void
Результат void

atMinValue() публичный Метод

Returns true if the current value is the first member of the circular sequence.

If #outputUnigrams = true, the first member of the circular sequence will be 1; otherwise, it will be #minShingleSize.

public atMinValue ( ) : bool
Результат bool

reset() публичный Метод

Sets this circular number's value to the first member of the circular sequence

gramSize will take on values from the circular sequence { [ 1, ] #minShingleSize [ , ... , #maxShingleSize ] }.

1 is included in the circular sequence only if #outputUnigrams = true.

public reset ( ) : void
Результат void