Skip to main content

A Doc2Vec based Embedding Model.

Project description

Swarmauri Logo

PyPI - Downloads PyPI - Python Version PyPI - License PyPI - Version


Doc2Vec Embedding

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.6.1.dev6.tar.gz (6.8 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.6.1.dev6.tar.gz.

File metadata

File hashes

Hashes for swarmauri_embedding_doc2vec-0.6.1.dev6.tar.gz
Algorithm Hash digest
SHA256 0842278dc8bc1a19a4c1bb36c2b11044c702b81704c60c53f2c3be0dca3184b2
MD5 b82fe1ef6c202b12061697a907a3be32
BLAKE2b-256 40666b402040f87f090917ce1edfabf7cf8bce37d32e2c6b2925f7e4f2ab1fd9

See more details on using hashes here.

File details

Details for the file swarmauri_embedding_doc2vec-0.6.1.dev6-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_embedding_doc2vec-0.6.1.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 7c9716c9705ff03adf81b13e1690234397e2097e654a11885c5acc66653d4d98
MD5 9dfd218bb2f3505da530f53ae1162023
BLAKE2b-256 88e0f10af366e7b22939b8713883d209e2e71abe561c5ca8cb1fabe1d510d8f6

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