Skip to content

Complex Search with "OR" #724

Answered by thomaskrause
LisaEggert asked this question in Q&A
Discussion options

You must be logged in to vote

In general, the OR-queries have a tendency to get complicated when trying to reference the nodes by number. It should be possible however, to use the shortcut for the operators and keep all "OR" relations on the toplevel. E.g. instead of

((tok & pos="NN") |  (tok & lemma="wollen")) & #1 . #2

(which does not work because the automatic nodes numbers are more complicated in OR-queries, you could write

(tok . pos="NN") |  (tok . lemma="wollen")

(https://korpling.org/annis3/?id=a2f8d2dc-a607-4651-94f5-0ed03bbbe3a4) which puts the operator directly between the nodes. If you want to reference a node from several or-parts, you could explicitly name it instead of relying on the automatic numbering.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomaskrause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #686 on August 26, 2021 13:46.