|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IScopeHandler
Interface of all scope handler classes. A scope handler implements the three most important operations with respect to the maintenance of scopes:
filter(JCas, Scope, Set) - Filtering of the text units of the given
scope that are relevant with respect to the given set of annotation types and
features.intersect(JCas, Scope, Scope) - Determining which text units of the
first given scope are relevant given the relevant text units of the second given
scope (which is either the root scope or a descendant scope of the first given
scope).unify(JCas, Set) - Determining a scope that represents the union of
all given scopes given a set of annotation types and features to compute the
scope for.EfXScopeHandler.
| Method Summary | |
|---|---|
Scope |
filter(org.apache.uima.jcas.JCas jcas,
Scope scope,
java.util.Set<org.apache.uima.analysis_engine.TypeOrFeature> outputTypes)
Filters the text units (annotations) of the given scope in the given JCas object that are relevant with respect to the given output annotation types and features. |
Scope |
intersect(org.apache.uima.jcas.JCas jcas,
Scope first,
Scope second)
Retains all text units (annotations) of the first given scope that intersect with one of the text units of the second given scope in the text of the given JCas object. |
Scope |
unify(org.apache.uima.jcas.JCas jcas,
java.util.Set<Scope> scopes)
Creates a unified scope from the given scopes, i.e., a scope that consists of all text spans of the given JCas object that belong to at least one of the single scopes. |
| Method Detail |
|---|
Scope filter(org.apache.uima.jcas.JCas jcas,
Scope scope,
java.util.Set<org.apache.uima.analysis_engine.TypeOrFeature> outputTypes)
jcas - The JCas objectoutputTypes - The output annotation typesscope - The scope
Scope intersect(org.apache.uima.jcas.JCas jcas,
Scope first,
Scope second)
jcas - The JCas objectfirst - The first scopesecond - The second scope
Scope unify(org.apache.uima.jcas.JCas jcas,
java.util.Set<Scope> scopes)
jcas - The JCas objectscopes - The scopes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||