github-actions[bot]
GitHub deploy: 356da8a363d86def3fed1834c668fe8a758fc87d
5c02435
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