GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ClassifAI
  • Documentation
  • Vectorisers Overview
  • vectorisers.base.VectoriserBase
  • vectorisers.base.VectoriserBase.transform
  • vectorisers.huggingface.HuggingFaceVectoriser
  • vectorisers.ollama.OllamaVectoriser
  • vectorisers.gcp.GcpVectoriser
  • indexers
  • indexers.VectorStore
  • indexers.VectorStore.embed
  • indexers.VectorStore.search
  • indexers.VectorStore.reverse_search
  • indexers.VectorStore.from_filespace

This view

  • Original page
  • New address

GeezerVison is showing datasciencecampus.github.io — vectorisers.base.vectoriserbase – ClassifAI

vectorisers.base.VectoriserBase

vectorisers.base.VectoriserBase()

Abstract base class for all vectorisers.

Defines the common interface that all vectoriser implementations must follow. Subclasses must implement the transform method to convert text into numerical embeddings.

Methods

Name Description
transform Transforms input text(s) into embeddings.

transform

vectorisers.base.VectoriserBase.transform(texts)

Transforms input text(s) into embeddings.

This abstract method must be implemented by any subclass of VectoriserBase. It converts input text in string or list form into a embedding in numpy array form.

Parameters

Name Type Description Default
texts str | list[str] A string or list of strings representing the input text(s) to be transformed. required

Returns

Name Type Description
np.ndarray numpy.ndarray: A numpy array containing the embeddings for the input text(s). Each row corresponds to the embedding of a single input text.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.