Duplicated from arcticaurora/ais
155f397
1
2
3
4
5
6
7
8
9
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