Package | Description |
---|---|
com.yahoo.prelude.semantics | |
com.yahoo.prelude.semantics.engine | |
com.yahoo.prelude.semantics.rule |
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 |
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) |
RuleBase |
RuleImporter.privateImportFromReader(Reader reader,
String sourceName,
String automataFile,
RuleBase ruleBase)
Returns an unitialized rule base
|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
RuleBase |
RuleImporter.privateImportFile(String fileName,
String automataFile,
RuleBase ruleBase) |
RuleBase |
RuleImporter.privateImportFromReader(Reader reader,
String sourceName,
String automataFile,
RuleBase ruleBase)
Returns an unitialized rule base
|
void |
RuleImporter.setAutomata(RuleBase base,
String automata) |
Constructor and Description |
---|
SemanticSearcher(RuleBase... ruleBases) |
SemanticSearcher(RuleBase ruleBase)
Creates a semantic searcher using the given default rule base
|
Constructor and Description |
---|
SemanticSearcher(List<RuleBase> ruleBases) |
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 © 2018. All rights reserved.