set MatchingStrategy (shortest | standard | longest);
?
, *
and +
operators
match the smallest number of tokens possible (refers to regular expressions at
token level)
?
, *
and +
operators match as many tokens as possible;
> [pos="JJ"]+ [pos="NNS?"];
> group Last matchend lemma by match lemma;
> [pos="DT"]? [pos="JJ.*"]* [pos="NNS?"]
( [pos="IN|TO"] [pos="DT"]? [pos="JJ.*"]* [pos="NNS?"] )*
> (?longest) [pos = "NP.*"]+;
Currently, only these four modifiers are supported: (?shortest)
,
(?standard)
, (?longest)
and (?traditional)
. Embedded
modifiers are particularly useful for Web interfaces that do not give users
direct control over the matching strategy. Since they are part of the
CQP query syntax, no modifications to existing Web interfaces are required.