Skip to content

Remove handle_impossible_answer from the default PIPELINE_KWARGS in the question answering evaluator#272

Merged
lvwerra merged 3 commits into
huggingface:mainfrom
fxmarty:fix-qa-evaluator-test
Aug 24, 2022
Merged

Remove handle_impossible_answer from the default PIPELINE_KWARGS in the question answering evaluator#272
lvwerra merged 3 commits into
huggingface:mainfrom
fxmarty:fix-qa-evaluator-test

Conversation

@fxmarty

@fxmarty fxmarty commented Aug 23, 2022

Copy link
Copy Markdown
Contributor

This argument should be set depending on whether we infer a dataset in the format of squad_v1 or squad_v2, hence remove the default.

Fixing as well the depreciation of logger.warn for logger.warning.

cc @mathemakitten

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@fxmarty
fxmarty force-pushed the fix-qa-evaluator-test branch from f607f49 to 3970fa2 Compare August 23, 2022 09:57
@fxmarty
fxmarty force-pushed the fix-qa-evaluator-test branch from 0d5f4ef to f72a969 Compare August 23, 2022 14:58

@mathemakitten mathemakitten left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fxmarty!!

@lvwerra lvwerra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! I think maybe having this as a class attribute in the first place is not ideal and we should rather do it in the __init__ so this is not shared across instances of the same evaluator. But we can fix this in a separate PR.

@lvwerra
lvwerra merged commit d6bfc74 into huggingface:main Aug 24, 2022
mathemakitten pushed a commit that referenced this pull request Aug 24, 2022
…in the question answering evaluator (#272)

* fix handle_impossible_answer arg in question answering evaluator

* add default pipeline kwargs for all subclasses of evalautor

* trigger actions
mathemakitten pushed a commit that referenced this pull request Sep 23, 2022
…in the question answering evaluator (#272)

* fix handle_impossible_answer arg in question answering evaluator

* add default pipeline kwargs for all subclasses of evalautor

* trigger actions
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.

4 participants