Skip to main content

A Doc2Vec based Embedding Model.

Project description

Swamauri Logo

PyPI - Downloads GitHub Hits PyPI - Python Version PyPI - License PyPI - swarmauri_embedding_doc2vec


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.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

swarmauri_embedding_doc2vec-0.7.2.dev2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file swarmauri_embedding_doc2vec-0.7.2.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_embedding_doc2vec-0.7.2.dev2.tar.gz
Algorithm Hash digest
SHA256 a0aa08967019603f0d4587cc8b9a0df3c316285b4c5c1af166950b7d8acb4d61
MD5 0f43bed104e2e5625f38a0e702c87659
BLAKE2b-256 81d4381986368a9d839a7eab11be0575ac348a27146fe3ed63e25d8f3ceb3cd0

See more details on using hashes here.

File details

Details for the file swarmauri_embedding_doc2vec-0.7.2.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_embedding_doc2vec-0.7.2.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd2110c3e11a5abe9a118873fb002888c3722b2a7b26bb9828f41c157dba6cd2
MD5 62c9fec9e7419a932a1370e2b7c231cb
BLAKE2b-256 7625b719f7c998009dcddd386f9c3d850acd49e5c79b16c4ff91f59f772197d4

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