Repository navigation
Conversation
open_content matched split names against the whole path, so a parent directory containing "dev", "test" or "train" made every file load as that split and create_dataset failed on the missing ones. Match on the file name instead. get_for_all_path divided by zero when the data folder had no zero-shot datasets (or only zero-shot ones), after the whole evaluation had run. Only write the tables that have results.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
get_for_all_path(whateval.pyruns) broke in two ways when pointed at my own data:open_contentchecks"train" in p,"dev" in petc. against the full path, so if a parent folder has one of those words in its name (/home/dev/...,data/test-sets/...) every json loads as that split andcreate_datasetfails withTypeError: 'NoneType' object is not iterable. It now checks the file name only.When the data folder has none of the zero-shot sets (mit-movie, CrossNER_*), the average at the end divides by zero after the whole eval has already run, so
tables.txtnever gets written. Same with only zero-shot sets. A table with no results is now skipped; the output is the same as before when both are present.tests/test_evaluate_ner.pycovers both cases, both tests fail on main.