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.
Metadata
Release files for TextToVector 2025.5.180916
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| texttovector-2025.5.180916.tar.gz | 3.6 kB | Without provenance | Details for texttovector-2025.5.180916.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| texttovector-2025.5.180916-py3-none-any.whl | Python 3 | none | any | Details for texttovector-2025.5.180916-py3-none-any.whl |
Total release size: 7.7 kB
Release files / texttovector-2025.5.180916.tar.gz
| Download URL | texttovector-2025.5.180916.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1969eb5fc645d1f0ea3b61e750ec80e1f7aa2be547e03706cd5c73b7e60383cc
|
|
BLAKE2b-256 checksum How to use checksums |
367adfab45cec4304c0695cd8d997370090e294420e10537fd058fa7045a1b64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Release files / texttovector-2025.5.180916-py3-none-any.whl
| Download URL | texttovector-2025.5.180916-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64ab00a2b51411f2b814ba2230a1e1b1647c726794890b05f47b2f24930d3fd5
|
|
BLAKE2b-256 checksum How to use checksums |
773831629b4a0e5b0d850959d666ecdfb83b3f505384ecbdf00cc6e7660f7506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Security for TextToVector 2025.5.180916
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.