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

Add UNKs to label dictionaries by default #2435

Merged
merged 5 commits into from
Sep 14, 2021
Merged

Conversation

alanakbik
Copy link
Collaborator

Changes make_label_dictionary to add UNKs by default. Otherwise the label dictionary causes problems if loss needs to be calculated for labels outside the dictionary (for instance, if test data contains labels that don't exist in train).

These errors were undetected since our unit tests were using make_tag_dictionary instead of make_label_dictionary. For this reason, this PR finally marks make_tag_dictionary as deprecated and updates the unit tests.

@alanakbik alanakbik merged commit e94d530 into master Sep 14, 2021
@alanakbik alanakbik deleted the dictionary-unking branch September 14, 2021 15:45
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