public class SynonymMap extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SynonymMap.Builder
Builds an FSTSynonymMap.
|
static class |
SynonymMap.Parser
Abstraction for parsing synonym files.
|
Modifier and Type | Field and Description |
---|---|
FST<BytesRef> |
fst
map<input word, list<ord>>
|
int |
maxHorizontalContext
maxHorizontalContext: maximum context we need on the tokenstream
|
static char |
WORD_SEPARATOR
for multiword support, you must separate words with this separator
|
BytesRefHash |
words
map<ord, outputword>
|
Constructor and Description |
---|
SynonymMap(FST<BytesRef> fst,
BytesRefHash words,
int maxHorizontalContext) |
public static final char WORD_SEPARATOR
public final BytesRefHash words
public final int maxHorizontalContext
public SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.