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

WITH x (*1W ) { ADD y _C1_ } does not add to word beyond window #163

Open
unhammer opened this issue Feb 26, 2025 · 1 comment
Open

WITH x (*1W ) { ADD y _C1_ } does not add to word beyond window #163

unhammer opened this issue Feb 26, 2025 · 1 comment

Comments

@unhammer
Copy link
Collaborator

unhammer commented Feb 26, 2025

Image

grammar:

DELIMITERS=".";


WITH (n) IF
    (*1W (adv))                 # _C1_
{
    ADD (@subj) (*) ;
    ADD (@advl) _C1_ ;
};

input:

"<a>"
	"a" n
"<b>"
	"b" vblex
"<.>"
	"." sent

"<c>"
	"c" adv

output:

"<a>"
	"a" n @subj WITH:4 ADD:7
"<b>"
	"b" vblex
"<.>"
	"." sent

"<c>"
	"c" adv

expected:

"<a>"
	"a" n @subj WITH:4 ADD:7
"<b>"
	"b" vblex
"<.>"
	"." sent

"<c>"
	"c" adv @adv WITH:4 ADD:8
@mr-martian
Copy link
Collaborator

I think the issue here is that using _C1_ as a target was implemented as "create a set that is (*) if it's the same cohort and non-matching otherwise", so something more complicated will be needed in order to span windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants