in src/alpaca_eval/annotators/base.py [0:0]
def load_(self, path: Optional[utils.AnyPath] = None):
"""Load all the annotations from json."""
path = path or self.caching_path
if path is not None:
path = Path(path)
if path.exists():
logging.info(f"Loading all annotations from {path}.")
self.df_annotations = pd.read_json(path, dtype={k: str for k in self.all_keys})