TextToVector


NameTextToVector JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/chigwell/TextToVector
SummaryA package to convert text into embedding vectors using Hugging Face models.
upload_time2024-05-25 10:41:35
maintainerNone
docs_urlNone
authorEugene Evstafev
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI version](https://badge.fury.io/py/TextToVector.svg)](https://badge.fury.io/py/TextToVector)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/TextToVector)](https://pepy.tech/project/TextToVector)

# 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:

```bash
pip install TextToVector
```

## Usage

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

```python
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](https://github.com/chigwell/TextToVector/issues).

## License

This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/chigwell/TextToVector",
    "name": "TextToVector",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Eugene Evstafev",
    "author_email": "ee345@cam.ac.uk",
    "download_url": "https://files.pythonhosted.org/packages/c6/7f/5d8b38413ec584a95a05edb232da641fdc5731c50a373232fcf77b738ab7/TextToVector-0.1.2.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://badge.fury.io/py/TextToVector.svg)](https://badge.fury.io/py/TextToVector)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Downloads](https://static.pepy.tech/badge/TextToVector)](https://pepy.tech/project/TextToVector)\n\n# TextToVector\n\n`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.\n\n## Installation\n\nTo install `TextToVector`, you can use pip:\n\n```bash\npip install TextToVector\n```\n\n## Usage\n\n`TextToVector` is straightforward to use in your Python projects. Here's a quick example:\n\n```python\nfrom text_to_vector import TextToVector\n\nt2v = TextToVector(model_name='bert-base-uncased')\ntext = \"def hello_world():\\n    print('Hello, world!')\"\nvector = t2v.text_to_embedding(text)\nprint(\"Generated Vector:\", vector)\n```\n\nThis 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.\n\n## Features\n\n- Easy generation of embedding vectors from text.\n- Utilizes state-of-the-art models from Hugging Face.\n- Supports customization of model choices.\n- Lightweight and easy to integrate.\n\n## Contributing\n\nContributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/TextToVector/issues).\n\n## License\n\nThis project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package to convert text into embedding vectors using Hugging Face models.",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/chigwell/TextToVector"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e68d63ecd0720a55a5742360730651e3ca91b29c8a4bfb11d8475a9df0e27c96",
                "md5": "5e0107fbfa8bd1226b8e8f9c8ace9756",
                "sha256": "02d5ed88f59d39ff1f048c360fb51d52f793286f87fc493594ac152d56cec3a6"
            },
            "downloads": -1,
            "filename": "TextToVector-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5e0107fbfa8bd1226b8e8f9c8ace9756",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3885,
            "upload_time": "2024-05-25T10:41:32",
            "upload_time_iso_8601": "2024-05-25T10:41:32.770102Z",
            "url": "https://files.pythonhosted.org/packages/e6/8d/63ecd0720a55a5742360730651e3ca91b29c8a4bfb11d8475a9df0e27c96/TextToVector-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c67f5d8b38413ec584a95a05edb232da641fdc5731c50a373232fcf77b738ab7",
                "md5": "681ea576b9282bc2f2062f866d7217e4",
                "sha256": "fd3f97a02d103119eb08764bfa393119fc527225da16db0e371d878b21150523"
            },
            "downloads": -1,
            "filename": "TextToVector-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "681ea576b9282bc2f2062f866d7217e4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3463,
            "upload_time": "2024-05-25T10:41:35",
            "upload_time_iso_8601": "2024-05-25T10:41:35.436701Z",
            "url": "https://files.pythonhosted.org/packages/c6/7f/5d8b38413ec584a95a05edb232da641fdc5731c50a373232fcf77b738ab7/TextToVector-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-25 10:41:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "chigwell",
    "github_project": "TextToVector",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "texttovector"
}
        
Elapsed time: 1.27204s