public final class ParserEnvironment extends Object
Parser
. In case you are creating a parser from within a
Searcher
, you can use the fromExecutionContext(Execution.Context)
factory for convenience.Constructor and Description |
---|
ParserEnvironment() |
Modifier and Type | Method and Description |
---|---|
static ParserEnvironment |
fromExecutionContext(Execution.Context context) |
static ParserEnvironment |
fromParserEnvironment(ParserEnvironment environment) |
IndexFacts |
getIndexFacts() |
com.yahoo.language.Linguistics |
getLinguistics() |
SpecialTokens |
getSpecialTokens() |
ParserEnvironment |
setIndexFacts(IndexFacts indexFacts) |
ParserEnvironment |
setLinguistics(com.yahoo.language.Linguistics linguistics) |
ParserEnvironment |
setSpecialTokens(SpecialTokens specialTokens) |
public IndexFacts getIndexFacts()
public ParserEnvironment setIndexFacts(IndexFacts indexFacts)
public com.yahoo.language.Linguistics getLinguistics()
public ParserEnvironment setLinguistics(com.yahoo.language.Linguistics linguistics)
public SpecialTokens getSpecialTokens()
public ParserEnvironment setSpecialTokens(SpecialTokens specialTokens)
public static ParserEnvironment fromExecutionContext(Execution.Context context)
public static ParserEnvironment fromParserEnvironment(ParserEnvironment environment)
Copyright © 2018. All rights reserved.