github-actions[bot]
GitHub deploy: ebecf4caf2619658e728c20434b275a3a0ba2270
bb47d42
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