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

improve CorrectionLoopFinderApi #9608

Merged
merged 1 commit into from
Nov 6, 2023
Merged

improve CorrectionLoopFinderApi #9608

merged 1 commit into from
Nov 6, 2023

Conversation

AgnesKleinhans
Copy link
Contributor

Fix for error ErrorRateTooHigh, so that the code doesn't break but keeps going:

An exception occurred: java.lang.RuntimeException: Got error: Error: ErrorRateTooHigh is reached by a single sentence after rule: GERMAN_SPELLER_RULE the whole text contains 32 words this sentence has 22 matches
 - HTTP response code 400
Exception in thread "main" java.lang.NullPointerException

Test sentence: hey everyone we planned a „moto woche“ so we gonna dress up every day in different costumes it would be great if all of you would join us. (this english sentence was by accident in the german data set and caused the error)

@AgnesKleinhans AgnesKleinhans merged commit e0dff9f into master Nov 6, 2023
1 check passed
@AgnesKleinhans AgnesKleinhans deleted the ak-06-nov branch November 6, 2023 14:03
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