|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.ling.tokensregex.SequenceMatchRules.AnnotationExtractRule<S,T>
T - Output type (MatchedExpression)public static class SequenceMatchRules.AnnotationExtractRule<S,T extends MatchedExpression>
Rule that specifies how to extract sequence of MatchedExpression from an annotation (CoreMap).
| Field Summary | |
|---|---|
boolean |
active
|
java.lang.Class |
annotationField
Annotation field to apply rule over: text or tokens or numerizedtokens |
SequenceMatchRules.ExtractRule<S,T> |
extractRule
Actual rule performing the extraction (converting annotation to MatchedExpression) |
Filter<T> |
filterRule
|
boolean |
includeNested
|
boolean |
isComposite
|
int |
matchedExpressionGroup
|
SequenceMatcher.FindType |
matchFindType
|
boolean |
matchWithResults
|
java.lang.String |
name
Name of the rule |
double |
priority
Priority in which this rule should be applied with respect to others |
java.util.List<java.lang.Class> |
resultAnnotationField
Annotation field(s) to put new annotation |
java.lang.Class |
resultNestedAnnotationField
Annotation field for child/nested annotations |
java.lang.String |
ruleType
Type of rule to apply: token string match, pattern string match |
int |
stage
Stage in which this rule should be applied with respect to others |
java.lang.Class |
tokensAnnotationField
|
java.util.List<java.lang.Class> |
tokensResultAnnotationField
Annotation field(s) on individual tokens to put new annotation |
double |
weight
Weight given to the rule (how likely is this rule to fire) |
| Constructor Summary | |
|---|---|
SequenceMatchRules.AnnotationExtractRule()
|
|
| Method Summary | |
|---|---|
boolean |
accept(T obj)
Checks if the given object passes the filter. |
boolean |
extract(S in,
java.util.List<T> out)
|
void |
update(Env env,
java.util.Map<java.lang.String,java.lang.Object> attributes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String name
public int stage
public double priority
public double weight
public java.lang.Class annotationField
public java.lang.Class tokensAnnotationField
public java.util.List<java.lang.Class> tokensResultAnnotationField
public java.util.List<java.lang.Class> resultAnnotationField
public java.lang.Class resultNestedAnnotationField
public SequenceMatcher.FindType matchFindType
public int matchedExpressionGroup
public boolean matchWithResults
public java.lang.String ruleType
public boolean isComposite
public boolean includeNested
public boolean active
public SequenceMatchRules.ExtractRule<S,T extends MatchedExpression> extractRule
public Filter<T extends MatchedExpression> filterRule
| Constructor Detail |
|---|
public SequenceMatchRules.AnnotationExtractRule()
| Method Detail |
|---|
public void update(Env env,
java.util.Map<java.lang.String,java.lang.Object> attributes)
public boolean extract(S in,
java.util.List<T> out)
extract in interface SequenceMatchRules.ExtractRule<S,T extends MatchedExpression>public boolean accept(T obj)
Filter
accept in interface Filter<T extends MatchedExpression>obj - an object to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||