def METHOD_NAME(self) -> List[float]:
    if not self.prediction:
        return []
    if self.prediction.score is not None:
        return [self.prediction.score]
    return [e.score for e in self.prediction.entities]