This method defines the common API for all the evaluation module in the library
(self, *, predictions=None, references=None, **kwargs)
| 717 | return None |
| 718 | |
| 719 | def _compute(self, *, predictions=None, references=None, **kwargs) -> Dict[str, Any]: |
| 720 | """This method defines the common API for all the evaluation module in the library""" |
| 721 | raise NotImplementedError |
| 722 | |
| 723 | def __del__(self): |
| 724 | if hasattr(self, "filelock") and self.filelock is not None: |