Swarmauri Embedding Doc2vec
A Gensim-based Doc2Vec implementation for document embedding in the Swarmauri ecosystem. This package provides document vectorization capabilities using the Doc2Vec algorithm.
Installation
pip install swarmauri_embedding_doc2vec
Usage
from swarmauri.embeddings.Doc2VecEmbedding import Doc2VecEmbedding
# Initialize the embedder
embedder = Doc2VecEmbedding(vector_size=3000)
# Prepare your documents
documents = ["This is the first document.", "Here is another document.", "And a third one"]
# Fit and transform documents
vectors = embedder.fit_transform(documents)
# Transform new documents
new_doc = "This is a new document"
vector = embedder.transform([new_doc])
# Save and load the model
embedder.save_model("doc2vec.model")
embedder.load_model("doc2vec.model")
Want to help?
If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.
Metadata
Release files for swarmauri_embedding_doc2vec 0.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_embedding_doc2vec-0.7.5.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_embedding_doc2vec-0.7.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / swarmauri_embedding_doc2vec-0.7.5.tar.gz
| Download URL | swarmauri_embedding_doc2vec-0.7.5.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea8c82dab227e8393b8fb5b3713fdc24c799e0da0f5b8be24d7c18ef8cd807ba
|
|
BLAKE2b-256 checksum How to use checksums |
e56522e68aa8ec0df1bab81372d0b2eb32300062fedc5f05ae82bcea27b14fd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.7
|
Release files / swarmauri_embedding_doc2vec-0.7.5-py3-none-any.whl
| Download URL | swarmauri_embedding_doc2vec-0.7.5-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
068f6fa096750c0b61654b3ada9672d5c9b7f0cf83ddb7bf98683f064290c507
|
|
BLAKE2b-256 checksum How to use checksums |
36b9cf07216559ba2876456dedb68cf662c61cf2c26fd6eef4558a0ceea86b2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.7
|