github-actions[bot]
GitHub deploy: 2047859073f8ceb30ad2093d5d3e42a7569458e1
87bf6ae
raw
history blame contribute delete
219 Bytes
from abc import ABC, abstractmethod
from typing import Optional, List, Tuple
class BaseReranker(ABC):
@abstractmethod
def predict(self, sentences: List[Tuple[str, str]]) -> Optional[List[float]]:
pass