Fix KeyError by Correcting Key Name in Dataset Loading Process #441
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request addresses issue an issue, where the key name used to access label names in the dataset loading process was incorrect. The key 'lac' has been replaced with the correct key 'label' to ensure proper retrieval of label names.
Motivation and Context:
The motivation behind this change is to rectify the KeyError that occurs during the dataset loading process due to the incorrect key name usage. By replacing the key with the correct one, we ensure that the code functions as intended and retrieves the label names successfully.
Type of change
Dependencies:
No new dependencies are introduced by this change.
How Has This Been Tested:
Instructions for Testing:
Checklist
make lint
make type-check
make tests
make coverage
make doc