On 2013-12-17 11:56, Peter Klügl wrote:
Hi,
some of the rules behave as expected. It's maybe a bit counterintuitive,
but I do not see a way to improve it. I will fix the rest in the next
few days.
An example:
(SPECIAL ALL* SPECIAL) {-> MARK(TMP_GenericAllSTAR)};
ALL is a parent type of SPECIAL and * is a greedy quantifier. Therefore
ALL matches on all annotations and also on the SPECIAL annotations until
the end of the document. Then, there is no SPECIAL annotation left to
match and the rule fails.
Using a reluctant quantifier should work as expected for this specific
case case:
(SPECIAL ALL*? SPECIAL) {-> MARK(TMP_GenericAllSTAR)};
Hope this help,
Alexandre
--
Alexandre Patry, Ph.D
Chercheur / Researcher
http://KeaText.com