Bases: ABC
Interface for converting text to vectors.
Implementations of this interface transform input text into numerical
vectors that can be used in machine learning models, similarity calculations,
and other vector-based operations.
fit
abstractmethod
Source code in swarmauri_core/embeddings/IVectorize.py
| @abstractmethod
def fit(self, data: Union[str, Any]) -> None:
pass
|
Source code in swarmauri_core/embeddings/IVectorize.py
| @abstractmethod
def transform(self, data: Union[str, Any]) -> List[IVector]:
pass
|
Source code in swarmauri_core/embeddings/IVectorize.py
| @abstractmethod
def fit_transform(self, data: Union[str, Any]) -> List[IVector]:
pass
|
infer_vector
abstractmethod
infer_vector(data, *args, **kwargs)
Source code in swarmauri_core/embeddings/IVectorize.py
| @abstractmethod
def infer_vector(self, data: Union[str, Any], *args, **kwargs) -> IVector:
pass
|