Constructor ShingleAnalyzerWrapper
ShingleAnalyzerWrapper(Analyzer)
Declaration
public ShingleAnalyzerWrapper(Analyzer defaultAnalyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | defaultAnalyzer |
ShingleAnalyzerWrapper(Analyzer, Int32)
Declaration
public ShingleAnalyzerWrapper(Analyzer defaultAnalyzer, int maxShingleSize)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | defaultAnalyzer | |
System.Int32 | maxShingleSize |
ShingleAnalyzerWrapper(Analyzer, Int32, Int32)
Declaration
public ShingleAnalyzerWrapper(Analyzer defaultAnalyzer, int minShingleSize, int maxShingleSize)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | defaultAnalyzer | |
System.Int32 | minShingleSize | |
System.Int32 | maxShingleSize |
ShingleAnalyzerWrapper(Analyzer, Int32, Int32, String, Boolean, Boolean, String)
Creates a new ShingleAnalyzerWrapper
Declaration
public ShingleAnalyzerWrapper(Analyzer delegate, int minShingleSize, int maxShingleSize, string tokenSeparator, bool outputUnigrams, bool outputUnigramsIfNoShingles, string fillerToken)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | delegate | Analyzer whose TokenStream is to be filtered |
System.Int32 | minShingleSize | Min shingle (token ngram) size |
System.Int32 | maxShingleSize | Max shingle size |
System.String | tokenSeparator | Used to separate input stream tokens in output shingles |
System.Boolean | outputUnigrams | Whether or not the filter shall pass the original tokens to the output stream |
System.Boolean | outputUnigramsIfNoShingles | Overrides the behavior of outputUnigrams==false for those times when no shingles are available (because there are fewer than minShingleSize tokens in the input stream)? Note that if outputUnigrams==true, then unigrams are always output, regardless of whether any shingles are available. |
System.String | fillerToken | filler token to use when positionIncrement is more than 1 |
ShingleAnalyzerWrapper(LuceneVersion)
Wraps StandardAnalyzer.
Declaration
public ShingleAnalyzerWrapper(LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion |
ShingleAnalyzerWrapper(LuceneVersion, Int32, Int32)
Wraps StandardAnalyzer.
Declaration
public ShingleAnalyzerWrapper(LuceneVersion matchVersion, int minShingleSize, int maxShingleSize)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
System.Int32 | minShingleSize | |
System.Int32 | maxShingleSize |