Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Fix TextPairClassificationProcessor example by adding metric#780

Merged
julian-risch merged 1 commit intomasterfrom
fix_passage_ranking_example
May 25, 2021
Merged

Fix TextPairClassificationProcessor example by adding metric#780
julian-risch merged 1 commit intomasterfrom
fix_passage_ranking_example

Conversation

@julian-risch
Copy link
Copy Markdown
Member

@julian-risch julian-risch commented May 21, 2021

Without setting a metric, the TextPairClassificationProcessor cannot be initialized and the following message is shown:
"Initialized processor without tasks. Supply metric and label_list to the constructor for using the default task or add a custom task later via processor.add_task()"

if metric and label_list:

This PR sets the missing metric to f1_macro in the passage ranking example.

without setting a metric, the TextPairClassificationProcessor cannot be initialized and the following message is shown:
"Initialized processor without tasks. Supply `metric` and `label_list` to the constructor for using the default task or add a custom task later via processor.add_task()" https://github.com/deepset-ai/FARM/blob/751b48f0310e11c0e4cbdb95f264e47a587d86e1/farm/data_handler/processor.py#L587
@julian-risch julian-risch requested a review from brandenchan May 21, 2021 12:46
@julian-risch julian-risch merged commit 5d42114 into master May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants