from abc import ABC, abstractmethod | |
from typing import Optional, List, Tuple | |
class BaseReranker(ABC): | |
def predict(self, sentences: List[Tuple[str, str]]) -> Optional[List[float]]: | |
pass | |
from abc import ABC, abstractmethod | |
from typing import Optional, List, Tuple | |
class BaseReranker(ABC): | |
def predict(self, sentences: List[Tuple[str, str]]) -> Optional[List[float]]: | |
pass | |