Method | Description | |
---|---|---|
Add ( CharsRef input, CharsRef output, bool includeOrig ) : void |
Add a phrase->phrase synonym mapping. Phrases are character sequences where words are separated with character zero (U+0000). Empty words (two U+0000s in a row) are not allowed in the input nor the output!
|
|
Build ( ) : |
Builds an SynonymMap and returns it.
|
|
Builder ( bool dedup ) : Lucene.Net.Analysis.Tokenattributes |
If dedup is true then identical rules (same input, same output) will be added only once.
|
|
Join ( string words, CharsRef reuse ) : CharsRef |
Sugar: just joins the provided terms with {@link SynonymMap#WORD_SEPARATOR}. reuse and its chars must not be null.
|
Method | Description | |
---|---|---|
Add ( CharsRef input, int numInputWords, CharsRef output, int numOutputWords, bool includeOrig ) : void | ||
CountWords ( CharsRef chars ) : int | ||
HasHoles ( CharsRef chars ) : bool |
only used for asserting!
|
public Add ( CharsRef input, CharsRef output, bool includeOrig ) : void | ||
input | CharsRef | input phrase |
output | CharsRef | output phrase |
includeOrig | bool | true if the original should be included |
return | void |
public Builder ( bool dedup ) : Lucene.Net.Analysis.Tokenattributes | ||
dedup | bool | |
return | Lucene.Net.Analysis.Tokenattributes |
public static Join ( string words, CharsRef reuse ) : CharsRef | ||
words | string | |
reuse | CharsRef | |
return | CharsRef |