:house_with_garden: Fast & easy transfer learning for NLP. Harvesting language models for the industry. Focus on Question Answering.
1.73k
stars
247
forks
source link
Fix TextPairClassificationProcessor example by adding metric #780
Closed
julian-risch closed 3 years ago
Without setting a metric, the TextPairClassificationProcessor cannot be initialized and the following message is shown: "Initialized processor without tasks. Supply
metric
andlabel_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#L587This PR sets the missing metric to f1_macro in the passage ranking example.