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 num_mismatch filter #123

Merged
merged 6 commits into from
Oct 27, 2023
Merged

Improve num_mismatch filter #123

merged 6 commits into from
Oct 27, 2023

Conversation

jelmervdl
Copy link
Collaborator

Fixes #98.

If you want to play with the regex: https://regex101.com/r/choHwO/1

Questions I have though:

  • I added a boundary test at the end of the number to skip numbers in text like 30something. But this now also ignores 2nd.
  • I removed the condition that there had to be numbers on both sides of the bitext to even consider looking at the ratio.

@jelmervdl jelmervdl marked this pull request as ready for review October 27, 2023 13:37
@jelmervdl jelmervdl merged commit 64ecad2 into main Oct 27, 2023
5 checks passed
@jelmervdl jelmervdl deleted the num-mismatch branch October 27, 2023 13:38
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.

How does the num_mismatch filter tokenize?
1 participant