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

feat: Detect false negatives flag #19

Merged
merged 1 commit into from
Dec 29, 2024
Merged

Conversation

snorremd
Copy link
Owner

Add a new flag to run language detection on all posts in the firehose. This allows the feed to include false negatives, at the cost of including some false positives as language detection on short posts is not perfect. We make it a flag so it is possible to run feed generator in old mode where it only looks at posts tagged with Norwegian. We still check for false positives in the old mode.

Refactor the firehose module to be much more readable. Move the post processing and language detection logic out into a separate receiver method to make the event processor function much more readable.

Add a new flag to run language detection on all posts in the firehose.
This allows the feed to include false negatives, at the cost of
including some false positives as language detection on short posts is
not perfect. We make it a flag so it is possible to run feed generator
in old mode where it only looks at posts tagged with Norwegian.
We still check for false positives in the old mode.

Refactor the firehose module to be much more readable. Move the post
processing and language detection logic out into a separate receiver
method to make the event processor function much more readable.
@snorremd snorremd merged commit eb84677 into main Dec 29, 2024
1 check 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.

1 participant