How to use SARI metric in compute_metric function?
Hello all, first off, thank you so much for developing huggingface transformers and making NLP available to all. I am attempting to finetune a BART model for text-simplification, and I want to use the SARI metric as the metric for the trainer. However, since SARI expectssourcesin addition to predictions and references, I am not sure how to implement SARI in the compute_metrics() function for the trainer. I currently understand that the EvalPrediction object that is expected for the compute_metrics() function only has the predictions and references. How may I addsourcesas well?
2023-04-06T06:59:39Z
Did you get the solution for this?