File size: 216 Bytes
8d8e1b1
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from abc import ABC, abstractmethod
from typing import List
import numpy as np


class EmbeddingEncoder(ABC):
    @abstractmethod
    def generate_embeddings(self, texts: List[str]) -> List[np.ndarray]:
        pass