Skip to content

Conversation

@moshderte
Copy link

This pull request removes the label key from the score_dict used in the predict_educational_value function. The key was unnecessary and never used in practice, as FastText predictions always return labels with specific suffixes such as __label__Low, __label__Mid, or __label__High.

Changes:
Removed the label entry from score_dict.

Ensured that only valid FastText label keys are included (__label__Low, __label__Mid, __label__High).

Rationale:
FastText uses the label prefix for classification, but the base label (without a class name) is not a valid or returned label.

Keeping it in the dictionary introduces unnecessary noise and may confuse future maintainers.

This change is backward-compatible and improves code clarity. No functional behavior is altered, as the removed key was never referenced.

This pull request removes the __label__ key from the score_dict used in the predict_educational_value function. The key was unnecessary and never used in practice, as FastText predictions always return labels with specific suffixes such as __label__Low, __label__Mid, or __label__High.

Changes:
Removed the __label__ entry from score_dict.

Ensured that only valid FastText label keys are included (__label__Low, __label__Mid, __label__High).

Rationale:
FastText uses the __label__ prefix for classification, but the base __label__ (without a class name) is not a valid or returned label.

Keeping it in the dictionary introduces unnecessary noise and may confuse future maintainers.

This change is backward-compatible and improves code clarity. No functional behavior is altered, as the removed key was never referenced.
@moshderte
Copy link
Author

@sammcj check pls

@sammcj
Copy link
Contributor

sammcj commented Jul 28, 2025

@moshderte I'm not sure what you've @'d me on this repo sorry?

@moshderte
Copy link
Author

@sammcj sorry I was wrong

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