Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regular expressions in C2 are partial matches per default #65

Open
Akron opened this issue Jul 16, 2019 · 0 comments
Open

Regular expressions in C2 are partial matches per default #65

Akron opened this issue Jul 16, 2019 · 0 comments
Labels

Comments

@Akron
Copy link
Member

Akron commented Jul 16, 2019

First fix #66!

The C2 regular expression #REG(bal.?m) is currently translated to the Lucene equivalent bal.?m/ in KorAP. While C2 interprets regular expressions as partial matches, Lucene interprets them as full matches. So the valid interpretation of the first query has to be /.*bal.?.*/ instead. To have a full match, C2 requires anchor operators, i.e. #REG(^bal.?m$).

@Akron Akron added the bug label Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant