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

Fix TextPairClassificationProcessor example by adding metric #780

Merged
merged 1 commit into from
May 25, 2021

Conversation

julian-risch
Copy link
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 merged commit 5d42114 into master May 25, 2021
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.

2 participants