[docs]classBaseCrossEncoder(ABC):"""Interface for cross encoder models."""
[docs]@abstractmethoddefscore(self,text_pairs:List[Tuple[str,str]])->List[float]:"""Score pairs' similarity. Args: text_pairs: List of pairs of texts. Returns: List of scores. """