Skip to main content

A package to convert text into embedding vectors using Hugging Face models.

Project description

PyPI version License: MIT Downloads LinkedIn

TextToVector

TextToVector is a Python package designed to convert text into embedding vectors using Hugging Face models. This tool simplifies the process of generating embeddings for any given text, facilitating easy integration into NLP pipelines or machine learning models.

Installation

To install TextToVector, you can use pip:

pip install TextToVector

Usage

TextToVector is straightforward to use in your Python projects. Here's a quick example:

from text_to_vector import TextToVector

t2v = TextToVector(model_name='bert-base-uncased')
text = "def hello_world():\n    print('Hello, world!')"
vector = t2v.text_to_embedding(text)
print("Generated Vector:", vector)

This package is especially useful for applications requiring text representations, such as semantic analysis, information retrieval, or machine learning models where text data needs to be converted into numerical form.

Features

  • Easy generation of embedding vectors from text.
  • Utilizes state-of-the-art models from Hugging Face.
  • Supports customization of model choices.
  • Lightweight and easy to integrate.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

This project is licensed under the MIT License.

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

texttovector-2025.5.180916.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

texttovector-2025.5.180916-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file texttovector-2025.5.180916.tar.gz.

File metadata

  • Download URL: texttovector-2025.5.180916.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for texttovector-2025.5.180916.tar.gz
Algorithm Hash digest
SHA256 1969eb5fc645d1f0ea3b61e750ec80e1f7aa2be547e03706cd5c73b7e60383cc
MD5 4c1ba6684cd637029e04067428744bef
BLAKE2b-256 367adfab45cec4304c0695cd8d997370090e294420e10537fd058fa7045a1b64

See more details on using hashes here.

File details

Details for the file texttovector-2025.5.180916-py3-none-any.whl.

File metadata

File hashes

Hashes for texttovector-2025.5.180916-py3-none-any.whl
Algorithm Hash digest
SHA256 64ab00a2b51411f2b814ba2230a1e1b1647c726794890b05f47b2f24930d3fd5
MD5 85ec8e454aae7767e348b7e8e3fee346
BLAKE2b-256 773831629b4a0e5b0d850959d666ecdfb83b3f505384ecbdf00cc6e7660f7506

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