Constructor MockAnalyzer
MockAnalyzer(Random, CharacterRunAutomaton, Boolean, CharacterRunAutomaton)
Creates a new MockAnalyzer.
Declaration
public MockAnalyzer(Random random, CharacterRunAutomaton runAutomaton, bool lowerCase, CharacterRunAutomaton filter)
Parameters
Type | Name | Description |
---|---|---|
Random | random | Random for payloads behavior |
CharacterRunAutomaton | runAutomaton | DFA describing how tokenization should happen (e.g. [a-zA-Z]+) |
System.Boolean | lowerCase | true if the tokenizer should lowercase terms |
CharacterRunAutomaton | filter | DFA describing how terms should be filtered (set of stopwords, etc) |
MockAnalyzer(Random, CharacterRunAutomaton, Boolean)
Calls MockAnalyzer(random, runAutomaton, lowerCase, MockTokenFilter.EMPTY_STOPSET, false)
.
Declaration
public MockAnalyzer(Random random, CharacterRunAutomaton runAutomaton, bool lowerCase)
Parameters
Type | Name | Description |
---|---|---|
Random | random | |
CharacterRunAutomaton | runAutomaton | |
System.Boolean | lowerCase |
MockAnalyzer(Random)
Create a Whitespace-lowercasing analyzer with no stopwords removal.
Calls MockAnalyzer(random, MockTokenizer.WHITESPACE, true, MockTokenFilter.EMPTY_STOPSET, false)
.
Declaration
public MockAnalyzer(Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random |