|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectefxtools.filtering.EfXScopeHandler
public class EfXScopeHandler
Reference implementation of the abstract class
IScopeHandler.
The methods of the scope handler are implemented as follows:
| Constructor Summary | |
|---|---|
EfXScopeHandler()
|
|
| Method Summary | |
|---|---|
Scope |
filter(org.apache.uima.jcas.JCas jcas,
Scope scope,
java.util.Set<org.apache.uima.analysis_engine.TypeOrFeature> outputTypesAndFeatures)
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 scope1,
Scope scope2)
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EfXScopeHandler()
| Method Detail |
|---|
public Scope filter(org.apache.uima.jcas.JCas jcas,
Scope scope,
java.util.Set<org.apache.uima.analysis_engine.TypeOrFeature> outputTypesAndFeatures)
IScopeHandler
filter in interface IScopeHandlerjcas - The JCas objectscope - The scopeoutputTypesAndFeatures - The output annotation types
public Scope intersect(org.apache.uima.jcas.JCas jcas,
Scope scope1,
Scope scope2)
IScopeHandler
intersect in interface IScopeHandlerjcas - The JCas objectscope1 - The first scopescope2 - The second scope
public Scope unify(org.apache.uima.jcas.JCas jcas,
java.util.Set<Scope> scopes)
IScopeHandler
unify in interface IScopeHandlerjcas - The JCas objectscopes - The scopes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||