|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.rule.base.BaseRuleFactory
public abstract class BaseRuleFactory
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
BaseRuleFactory()
|
|
| Method Summary | |
|---|---|
List<Rule> |
apply(Annotation annotation)
|
protected CaptureConstraint |
baseRuleArgumentConstraint(Extraction extraction,
ExtractionPart part,
String value)
Used in base rule creation. |
List<Rule> |
create(Annotation annotation)
Create base rules from the supplied annotation. |
List<Rule> |
create(Annotation annotation,
RelationExtraction extraction)
Create base rules from the supplied annotation and extraction. |
protected void |
createConstraints(Annotation annotation,
Extraction extraction,
ExtractionPart part,
List<Constraint> constraints)
Used in base rule creation. |
protected List<Constraint> |
createConstraints(Annotation annotation,
RelationExtraction extraction)
Used in base rule creation. |
protected void |
createOntologicalForm(String name,
List<OntologicalForm> forms,
List<List<OntologicalFormArgument>> matrix,
List<OntologicalFormArgument> arguments)
Used in base rule creation. |
protected void |
createOntologicalFormArgumentConstraints(OntologicalRelationArgument argument,
ExtractionPart part,
Extraction extraction,
List<CaptureConstraint> constraints)
Used in base rule creation. |
protected List<OntologicalForm> |
createOntologicalForms(Annotation annotation,
RelationExtraction extraction)
Used in base rule creation. |
List<AnnotatedSentence> |
filter(List<AnnotatedSentence> annotateds)
|
boolean |
isLearnable(Annotation annotation)
|
protected boolean |
validate(List<OntologicalFormArgument> arguments)
Returns true if the arguments satisfy the minimum requirements for a base rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Function |
|---|
equals |
| Field Detail |
|---|
protected static org.slf4j.Logger logger
| Constructor Detail |
|---|
public BaseRuleFactory()
| Method Detail |
|---|
public List<Rule> apply(Annotation annotation)
apply in interface com.google.common.base.Function<Annotation,List<Rule>>public List<Rule> create(Annotation annotation)
annotation - seed for base rules
protected boolean validate(List<OntologicalFormArgument> arguments)
arguments - arguments to validate
public List<Rule> create(Annotation annotation,
RelationExtraction extraction)
annotation - seed for base rulesextraction - to apply base rules
public List<AnnotatedSentence> filter(List<AnnotatedSentence> annotateds)
public boolean isLearnable(Annotation annotation)
protected List<OntologicalForm> createOntologicalForms(Annotation annotation,
RelationExtraction extraction)
annotation - extraction -
protected void createOntologicalFormArgumentConstraints(OntologicalRelationArgument argument,
ExtractionPart part,
Extraction extraction,
List<CaptureConstraint> constraints)
argument - part - extraction - constraints -
protected List<Constraint> createConstraints(Annotation annotation,
RelationExtraction extraction)
annotation - extraction -
protected void createConstraints(Annotation annotation,
Extraction extraction,
ExtractionPart part,
List<Constraint> constraints)
annotation - extraction - part - part of the relationconstraints - constructed result
protected void createOntologicalForm(String name,
List<OntologicalForm> forms,
List<List<OntologicalFormArgument>> matrix,
List<OntologicalFormArgument> arguments)
name - forms - matrix - arguments -
protected CaptureConstraint baseRuleArgumentConstraint(Extraction extraction,
ExtractionPart part,
String value)
extraction - part - value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||