diff --git a/spacy_llm/tasks/sentiment/util.py b/spacy_llm/tasks/sentiment/util.py index 83b6ace8..90310dac 100644 --- a/spacy_llm/tasks/sentiment/util.py +++ b/spacy_llm/tasks/sentiment/util.py @@ -30,4 +30,5 @@ def score(examples: Iterable[Example], **kwargs) -> Dict[str, Any]: ) for example in examples ] + return {"acc_sentiment": 1 - (sum(score_diffs) / len(score_diffs))}