[CWB] Accessing xml attributes in CQP
Stefan Evert
stefanML at collocations.de
Mon Aug 22 15:48:51 CEST 2016
> On 22 Aug 2016, at 15:17, Meier-Vieracker, Simon <simon.meier at tu-berlin.de> wrote:
>
> <text quote=„yes“ subject=„noun“ position=„post“>
>
> I know how to find only matches with a certain value in one attribute, say:
>
> [pos=„NN“] :: match.text_quote=„yes“;
>
> but how combine this attribute with another to narrow my query results?
Simply combine multiple global constraints with Boolean operators, e.g.
[pos="NN"] :: match.text_quote = "yes" & match.text_subject = "noun";
Best,
Stefan
More information about the CWB
mailing list