File size: 219 Bytes
9e93b10
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from abc import ABC, abstractmethod
from typing import List, Optional, Tuple


class BaseReranker(ABC):
    @abstractmethod
    def predict(self, sentences: List[Tuple[str, str]]) -> Optional[List[float]]:
        pass