Constructor ShingleFilter
ShingleFilter(TokenStream, Int32, Int32)
Constructs a ShingleFilter with the specified shingle size from the
TokenStream input
Declaration
public ShingleFilter(TokenStream input, int minShingleSize, int maxShingleSize)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | input stream |
System.Int32 | minShingleSize | minimum shingle size produced by the filter. |
System.Int32 | maxShingleSize | maximum shingle size produced by the filter. |
ShingleFilter(TokenStream, Int32)
Constructs a ShingleFilter with the specified shingle size from the
TokenStream input
Declaration
public ShingleFilter(TokenStream input, int maxShingleSize)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | input stream |
System.Int32 | maxShingleSize | maximum shingle size produced by the filter. |
ShingleFilter(TokenStream)
Construct a ShingleFilter with default shingle size: 2.
Declaration
public ShingleFilter(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | input stream |
ShingleFilter(TokenStream, String)
Construct a ShingleFilter with the specified token type for shingle tokens and the default shingle size: 2
Declaration
public ShingleFilter(TokenStream input, string tokenType)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | input stream |
System.String | tokenType | token type for shingle tokens |