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

reparse individual non-parsed words after full sentence #94

Merged
merged 4 commits into from
Sep 5, 2023

Conversation

unhammer
Copy link
Member

as noted in #80 (comment) this tries to do a reparse of single, unparsed words after full parse.

It seems to fix things in corpus runs.

Could it break anything @mr-martian ?

@unhammer
Copy link
Member Author

ok so it breaks tests :) Is it an actual failure? a tag changed from pl to sg

src/rtx_processor.cc Outdated Show resolved Hide resolved
@mr-martian
Copy link
Collaborator

In the first test that fails, there are 2 rules and they both change the same variable, and I think something might be going wrong with the ordering of those operations.

@unhammer
Copy link
Member Author

unhammer commented Sep 5, 2023

OK so it seems all the tests run in processGLR, I thought xmls used processTRX (can we rename that function to processLinear or something?)

mitigates #80

We splice in the outputQueueReparsed instead of just replacing in case
the output rule changes the number of LU's output.
@unhammer
Copy link
Member Author

unhammer commented Sep 5, 2023

Think I figured it out (didn't notice that checkForReduce changed currentBranch), tests pass now. @mr-martian does it seem OK to merge?

@mr-martian mr-martian merged commit fc7fe18 into main Sep 5, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants