efxtools.filtering
Class EfXScopedQuery
java.lang.Object
efxtools.filtering.AScopedQuery
efxtools.filtering.EfXScopedQuery
public class EfXScopedQuery
- extends AScopedQuery
Reference implementation of the abstract AScopedQuery
that takes a query string as input and parses it in order to obtain the scoped query
that represents the current extraction problem.
Information on the structure of the strings that can be parsed is given under
EfXScopedQuery(TypeSystem, String).
- Author:
- Author of EfXTools
|
Constructor Summary |
EfXScopedQuery(org.apache.uima.cas.TypeSystem typeSystem,
java.lang.String query)
Constructor that parses the scoped query given as a string based on the given
type system. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EfXScopedQuery
public EfXScopedQuery(org.apache.uima.cas.TypeSystem typeSystem,
java.lang.String query)
- Constructor that parses the scoped query given as a string based on the given
type system. The query is supposed to be in disjunctive normal form
- conjunction_1|...|conjunction_m
where each conjunction conjunction_i is assumed to be of the form
- degreeOfFiltering[argument_i1,...,argument_ik]
and where an argument is an output type or feature name or a conjunction
itself. All type and features must be defined in the given type system.
An example for a query could be
- Sentence[WorksFor(Person,Organization))|Paragraph(Location)].
Notice that the fully qualified names of the annotation types and features
must be given in order to use the query in the
ScopeTMS. Different from the arguments, for
scopes only types are allowed.
- Parameters:
typeSystem - The type systemquery - The query