Skip to main content

A Python package for converting texts to embeddings using pretrained models.

Project description

Text Embedding Package

A Python package for converting texts into embeddings using pretrained transformer models.

Installation

pip install herberta

```python
from herberta.embedding import TextToEmbedding

# Initialize the embedding model
embedder = TextToEmbedding("path/to/your/model")

# Single text input
embedding = embedder.get_embeddings("This is a sample text.")

# Multiple text input
texts = ["This is a sample text.", "Another example."]
embeddings = embedder.get_embeddings(texts)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

herberta-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

herberta-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file herberta-0.1.0.tar.gz.

File metadata

  • Download URL: herberta-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.6

File hashes

Hashes for herberta-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d7cfa9aadf6d170cb12c98e0c6fa7bd4d3b23f290db92210cd945f2e3f195ba8
MD5 4dbf39102aebe2bd8df32623170255a1
BLAKE2b-256 61cccf3ced7eab666b8dcb9f7d21d47880b7e805d3c6256d5ac41d28340590d6

See more details on using hashes here.

File details

Details for the file herberta-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: herberta-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.6

File hashes

Hashes for herberta-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1575bfc7737e973fcd06b7f78eb9b8e08a770e59697313f44441c9492f283f48
MD5 03aa328b58a24d61cfe5240709c16cee
BLAKE2b-256 c951e1e7308087ffc0870f2fd3abe2c0733546844d90a24bd6a3ff2b0f02e9a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page