github-actions[bot]
GitHub deploy: ab6223c4e645f905789d6f7f124f9b60e4e94ded
155f397
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