github-actions[bot]
GitHub deploy: 143cf67e0503dd8cc322c2fa1efc9614cb5f8ae3
af1516d
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