-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change alignment operator ==>TGT to look at overlapping relatioons.
Before, it would only find relations contained within the source and target spans; now it finds any relations that overlap both the source and target spans. Also fixed a parser tokenizer bug with the alignment operator, where two alignment operators in a single query would be parsed as a single very long alignment operator. Some characters inside relations operators regexes are now disallowed, such as spaces, quotes, etc., to prevent problems like these. If this proves to be a problems, we could add a special version like =/.../=> that allows anything, but it's probably not necessary. Squashed commit of the following: commit 8271393 Author: Jan Niestadt <jan.niestadt@ivdnt.org> Date: Mon May 27 15:17:21 2024 +0200 Guard against null config. commit 7172e15 Author: Jan Niestadt <jan.niestadt@ivdnt.org> Date: Tue May 21 11:25:08 2024 +0200 Fix parser tokenizer bug (alignment operator). Alignment operator was too "loose", i.e. in the query [word='the'] =test=> _, "='the'] =test=>" was seen as an alignment operator. Now disallowed several special characters inside the operator regular exoression to prevent this problem. Relation types should generally consist of normal characters, not quotes, spaces, brackets, etc. If really needed, we could add an option to put regexes between =/.../=> , but that's probably not necessary. commit 796cc5e Author: Jan Niestadt <jan.niestadt@ivdnt.org> Date: Tue May 21 10:19:30 2024 +0200 Enable DEBUG_PARSER. commit 6de7c86 Author: Jan Niestadt <jan.niestadt@ivdnt.org> Date: Fri May 17 20:33:07 2024 +0200 Add failing test. commit 823f2c8 Author: Jan Niestadt <jan.niestadt@ivdnt.org> Date: Fri May 17 13:28:13 2024 +0200 Alignment operator source adjust. commit 3628f9f Author: Jan Niestadt <jan.niestadt@ivdnt.org> Date: Thu May 16 16:01:31 2024 +0200 Alignment operator looks at overlapping relations.
- Loading branch information
1 parent
e270083
commit 1641331
Showing
5 changed files
with
222 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.