You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Precedence optimization fails when applied to spans which cover more than one token
Take e.g. this query on pcc2
NP & NP & NP & #1 . #2 & #2 . #3
In ANNIS 2 this gave us 2 results, but since ANNIS 3 incorrectly applies the precedence optimization the query gets translated to
NP & NP & NP & #1 . #2 & #2 . #3 & #1 . #3
and has only 1 match. The correct optimization would be
NP & NP & NP & #1 . #2 & #2 . #3 & #1 .* #3
This commit adds proper test cases for this situation and gives a fix
Take e.g. this query on pcc2
In ANNIS 2 this gave us 2 results, but ANNIS 3 incorrectly applies the precedence optimization and the query gets translated to
which results in only 1 match. The correct optimization would be
The text was updated successfully, but these errors were encountered: