Skip to main content

NMF Embedding for Swarmauri.

Project description

Swarmauri Logo

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


NMF Embedding Package

A Non-negative Matrix Factorization (NMF) based embedding implementation for text data processing in the Swarmauri ecosystem.

Installation

pip install swarmauri_embedding_nmf

Usage

Here's a basic example of how to use the NMF Embedding:

from swarmauri.embeddings.NmfEmbedding import NmfEmbedding

# Initialize the embedder
embedder = NmfEmbedding(n_components=10)

# Example documents
documents = ["This is the first document", "This is the second document", "And this is the third one"]

# Fit and transform the documents
vectors = embedder.fit_transform(documents)

# Transform a new document
new_vector = embedder.infer_vector("This is a new document")

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


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_nmf-0.7.0.dev6.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_embedding_nmf-0.7.0.dev6-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_embedding_nmf-0.7.0.dev6.tar.gz.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev6.tar.gz
Algorithm Hash digest
SHA256 d63f7e3b782f431b1871f04a716f8293a2ce976b2e9294223885bbd7cbdf4425
MD5 bf00d42e8afb54512f40d1b7dc3c30e2
BLAKE2b-256 a6d5c513d5834d09d70a3a6b1f6fd5a3d471dd847a448858a624f5d63484bcf1

See more details on using hashes here.

File details

Details for the file swarmauri_embedding_nmf-0.7.0.dev6-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 e49239ecfc7c76b054a0e05fe0215486d350d9eb52d7be13317e66e0bb99a08c
MD5 d84d61706f46781a6d2ece56ad29c8d0
BLAKE2b-256 a63eaebb965dbb60ea9b465d2e622d427065d0cb045a252de9d95a561a6d1042

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