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

Split replace penalty #21

Merged
merged 6 commits into from
May 31, 2023
Merged

Split replace penalty #21

merged 6 commits into from
May 31, 2023

Conversation

Meesch
Copy link
Contributor

@Meesch Meesch commented May 17, 2023

This PR implements a solution to issue #19. It simply provides the user with the option to turn on 'split_penalty' in the settings, which will add a 0.1 penalty to the edit distance of Alignments that split tokens apart in a replacement.

I have racked my brain and I think there is no issue with setting a penalty of 0.1 for operations that split a token, because it will only impact which Alignment is chosen in cases where the edit distance is equal. The unit tests all still pass, but I added it as a setting instead of hardcoding it in the source so that we might find a way to test it on a larger dataset, maybe with Jan's help/input. Please let me know what you think or if you see any issues with this approach.

@Meesch Meesch requested a review from oktaal May 17, 2023 20:42
@Meesch
Copy link
Contributor Author

Meesch commented May 17, 2023

mypy is causing the github actions to fail still, I would appreciate your insight on how to make it be chill about this.

@oktaal oktaal merged commit 67ef6bb into develop May 31, 2023
@oktaal oktaal deleted the bugfix/alignment_bugs branch May 31, 2023 15:19
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.

2 participants