github-actions[bot]
GitHub deploy: 0b7e342b612a5a29f33b29226c42ebd11f3e7f9d
f654de7
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