github-actions[bot]
GitHub deploy: f3a9c4a44734d2a08a694cfd8d5a218665c46dd4
330ae1b
raw
history blame
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