Package | Description |
---|---|
com.yahoo.prelude.semantics | |
com.yahoo.prelude.semantics.config | |
com.yahoo.prelude.semantics.engine | |
com.yahoo.prelude.semantics.rule |
Modifier and Type | Field and Description |
---|---|
private RuleBase |
SemanticSearcher.defaultRuleBase
The default rule base of this
|
private RuleBase |
RuleBase.IncludeDirective.includedBase |
Modifier and Type | Field and Description |
---|---|
private Map<String,RuleBase> |
SemanticSearcher.ruleBases
All rule bases of this (always including the default)
|
Modifier and Type | Method and Description |
---|---|
static RuleBase |
RuleBase.createFromFile(String ruleFile,
String automataFile)
Creates a rule base from a file
|
static RuleBase |
RuleBase.createFromString(String name,
String ruleString,
String automataFile)
Creates a rule base from a string
|
RuleBase |
SemanticSearcher.getDefaultRuleBase()
Returns the default rule base
|
RuleBase |
RuleBase.IncludeDirective.getIncludedBase() |
RuleBase |
SemanticSearcher.getRuleBase(String ruleBaseName)
Returns the rule base of the given name, or null if none.
|
RuleBase |
RuleImporter.importConfig(SemanticRulesConfig.Rulebase ruleBaseConfig) |
RuleBase |
RuleImporter.importFile(String fileName)
Imports semantic rules from a file
|
RuleBase |
RuleImporter.importFile(String fileName,
String automataFile)
Imports semantic rules from a file
|
RuleBase |
RuleImporter.importFile(String fileName,
String automataFile,
RuleBase ruleBase)
Imports semantic rules from a file
|
RuleBase |
RuleImporter.importFromReader(Reader reader,
String sourceInfo,
String automataFile) |
RuleBase |
RuleImporter.importFromReader(Reader reader,
String sourceName,
String automataFile,
RuleBase ruleBase)
Imports rules from a reader
|
RuleBase |
RuleImporter.importString(String string,
String automataFile) |
RuleBase |
RuleImporter.importString(String string,
String automataFile,
RuleBase ruleBase) |
RuleBase |
RuleImporter.importString(String string,
String automataFile,
String sourceName) |
RuleBase |
RuleImporter.importString(String string,
String automataFile,
String sourceName,
RuleBase ruleBase) |
RuleBase |
RuleImporter.privateImportConfig(SemanticRulesConfig.Rulebase ruleBaseConfig)
Imports an unitialized rule base
|
RuleBase |
RuleImporter.privateImportFile(String fileName,
String automataFile,
RuleBase ruleBase) |
private RuleBase |
RuleImporter.privateImportFromConfig(String ruleBaseName)
Returns an unitialized rule base
|
private RuleBase |
RuleImporter.privateImportFromDirectory(String ruleBaseName,
RuleBase ruleBase)
Returns an unitialized rule base
|
RuleBase |
RuleImporter.privateImportFromReader(Reader reader,
String sourceName,
String automataFile,
RuleBase ruleBase)
Returns an unitialized rule base
|
private RuleBase |
SemanticSearcher.resolveRuleBase(Query query) |
Modifier and Type | Method and Description |
---|---|
List<RuleBase> |
RuleImporter.importDir(String ruleBaseDir)
Imports all the rule files (files ending by "sr") in the given directory
|
private static List<RuleBase> |
SemanticSearcher.toList(SemanticRulesConfig config) |
Modifier and Type | Method and Description |
---|---|
private Result |
SemanticSearcher.handleError(RuleBase ruleBase,
Query query,
String error) |
RuleBase |
RuleImporter.importFile(String fileName,
String automataFile,
RuleBase ruleBase)
Imports semantic rules from a file
|
RuleBase |
RuleImporter.importFromReader(Reader reader,
String sourceName,
String automataFile,
RuleBase ruleBase)
Imports rules from a reader
|
RuleBase |
RuleImporter.importString(String string,
String automataFile,
RuleBase ruleBase) |
RuleBase |
RuleImporter.importString(String string,
String automataFile,
String sourceName,
RuleBase ruleBase) |
void |
RuleBase.include(RuleBase include)
Include another rule base into this.
|
void |
RuleImporter.include(String ruleBaseName,
RuleBase ruleBase)
Read and include a rule base in another
|
private void |
RuleBase.inlineIn(RuleBase receiver,
ListIterator<ProductionRule> receiverRules,
Set<RuleBase> included)
Recursively include this and everything it includes into the given rule base.
|
RuleBase |
RuleImporter.privateImportFile(String fileName,
String automataFile,
RuleBase ruleBase) |
private RuleBase |
RuleImporter.privateImportFromDirectory(String ruleBaseName,
RuleBase ruleBase)
Returns an unitialized rule base
|
RuleBase |
RuleImporter.privateImportFromReader(Reader reader,
String sourceName,
String automataFile,
RuleBase ruleBase)
Returns an unitialized rule base
|
void |
RuleImporter.setAutomata(RuleBase base,
String automata) |
Modifier and Type | Method and Description |
---|---|
private void |
RuleBase.inlineIn(RuleBase receiver,
ListIterator<ProductionRule> receiverRules,
Set<RuleBase> included)
Recursively include this and everything it includes into the given rule base.
|
Constructor and Description |
---|
IncludeDirective(RuleBase ruleBase) |
SemanticSearcher(RuleBase... ruleBases) |
SemanticSearcher(RuleBase ruleBase)
Creates a semantic searcher using the given default rule base
|
Constructor and Description |
---|
SemanticSearcher(List<RuleBase> ruleBases) |
Modifier and Type | Method and Description |
---|---|
List<RuleBase> |
RuleConfigDeriver.derive(List<com.yahoo.io.reader.NamedReader> readers) |
List<RuleBase> |
RuleConfigDeriver.derive(String ruleBaseDir) |
Modifier and Type | Method and Description |
---|---|
private void |
RuleConfigDeriver.ensureZeroOrOneDefault(List<RuleBase> ruleBases) |
private void |
RuleConfigDeriver.exportConfig(List<RuleBase> ruleBases,
String outputDir) |
Modifier and Type | Field and Description |
---|---|
private RuleBase |
RuleEngine.rules |
Constructor and Description |
---|
RuleEngine(RuleBase rules) |
Modifier and Type | Method and Description |
---|---|
void |
Condition.makeReferences(RuleBase rules)
Override if references needs to be set in this condition of its children
|
void |
NotCondition.makeReferences(RuleBase ruleBase) |
void |
CompositeCondition.makeReferences(RuleBase rules) |
void |
ProductionRule.makeReferences(RuleBase rules) |
void |
ConditionReference.makeReferences(RuleBase ruleBase) |
Copyright © 2017. All rights reserved.