|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectefxtools.filtering.ScopeTMS
public class ScopeTMS
This class serves as truth maintenance system (TMS) that maintains each
Scope that is derived from
AScopedQuery, which in turn represents an extraction
problem. The TMS is realized as a blackboard. For the architectural model of a
blackboard system, see for instance the according
Wikipedia
article on blackboard systems.
Conceptually, the scope TMS can be used to determine the portions of text a
given annotation type or features shall be extracted from. These portions of text
are defined by a scope, which contains the text units of a certain type (called degree
of filtering) that are possibly relevant with respect to an annotation type or feature.
Correspondingly, the mapping from annotation types and features to scopes depends
on the current query, which contains information about the scopes to be distinguished
and the relations between them.
The scope TMS provides functionality for defining and creating scopes, for
determining the scope for an analysis engine as well as for filtering previously
created scopes based on the results of an analysis engine. The most important
methods are implemented by a child class of IScopeHandler.
Here is a simple example of what is conceptually stored in the scope TMS.
Assume that a query
Scope.
FilteringAnalysisEngine in order to generate and filter scopes.
Implicitly, the following three types of analysis engines are distinguished:
createScopeTMS(AScopedQuery, AnalysisEngineDescription)
in order to update the query the scopes are based on as well as the aggregate
analysis engine that shall be used. This method must be called for each new query
and each new aggregate analysis engine to ensure correct usage.
FilteringProfile. However, this profiler must
explicitly be set via the parameter FilteringProfile. Otherwise, no
performance values are measured.
Also, the filtering framework can be deactivated via the parameter
PerformFiltering. In this case, no scopes are used. Each primitive analysis
engine simply processes the whole text.
| Field Summary | |
|---|---|
static FilteringProfile |
FilteringProfile
This parameter can be set to a FilteringProfile
in order to let the scope TMS measure performance values for the
filtering framework. |
static boolean |
PerformFiltering
This parameter can be used to set whether or not to perform filtering. |
static IScopeHandler |
scopeHandler
Handles all non-trivial operations on scopes, such as filterings, unions, or intersections. |
| Constructor Summary | |
|---|---|
ScopeTMS()
|
|
| Method Summary | |
|---|---|
static void |
createScopeTMS(AScopedQuery query,
org.apache.uima.analysis_engine.AnalysisEngineDescription aggregateAEDesc)
Creates the scope TMS based on the given query and the given aggregate analysis engine description. |
static java.lang.String |
ToString()
Returns the relevant TMS data as a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean PerformFiltering
createScopeTMS(AScopedQuery, AnalysisEngineDescription)
is called.
public static FilteringProfile FilteringProfile
FilteringProfile
in order to let the scope TMS measure performance values for the
filtering framework.
By default, this parameter is null. If it is set to null, no performance values
are measured.
public static IScopeHandler scopeHandler
| Constructor Detail |
|---|
public ScopeTMS()
| Method Detail |
|---|
public static void createScopeTMS(AScopedQuery query,
org.apache.uima.analysis_engine.AnalysisEngineDescription aggregateAEDesc)
query - The queryaggregateAEDesc - The aggregate analysis engine descriptionpublic static java.lang.String ToString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||