swarmauri_embedding_doc2vec 0.7.0.dev11__tar.gz → 0.7.1.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {swarmauri_embedding_doc2vec-0.7.0.dev11 → swarmauri_embedding_doc2vec-0.7.1.dev1}/PKG-INFO +15 -10
- swarmauri_embedding_doc2vec-0.7.1.dev1/README.md +54 -0
- {swarmauri_embedding_doc2vec-0.7.0.dev11 → swarmauri_embedding_doc2vec-0.7.1.dev1}/pyproject.toml +2 -2
- swarmauri_embedding_doc2vec-0.7.0.dev11/README.md +0 -49
- {swarmauri_embedding_doc2vec-0.7.0.dev11 → swarmauri_embedding_doc2vec-0.7.1.dev1}/LICENSE +0 -0
- {swarmauri_embedding_doc2vec-0.7.0.dev11 → swarmauri_embedding_doc2vec-0.7.1.dev1}/swarmauri_embedding_doc2vec/Doc2VecEmbedding.py +0 -0
- {swarmauri_embedding_doc2vec-0.7.0.dev11 → swarmauri_embedding_doc2vec-0.7.1.dev1}/swarmauri_embedding_doc2vec/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: swarmauri_embedding_doc2vec
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1.dev1
|
|
4
4
|
Summary: A Doc2Vec based Embedding Model.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Jacob Stewart
|
|
@@ -16,20 +16,25 @@ Requires-Dist: swarmauri_core
|
|
|
16
16
|
Requires-Dist: swarmauri_standard
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
|
-

|
|
20
19
|
|
|
21
|
-
|
|
20
|
+

|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
<p align="center">
|
|
23
|
+
<a href="https://pypi.org/project/swarmauri_embedding_doc2vec/">
|
|
24
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri_embedding_doc2vec" alt="PyPI - Downloads"/></a>
|
|
25
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/standards/swarmauri_embedding_doc2vec/README.md">
|
|
26
|
+
<img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/standards/swarmauri_embedding_doc2vec/README.md&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
|
|
27
|
+
<a href="https://pypi.org/project/swarmauri_embedding_doc2vec/">
|
|
28
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri_embedding_doc2vec" alt="PyPI - Python Version"/></a>
|
|
29
|
+
<a href="https://pypi.org/project/swarmauri_embedding_doc2vec/">
|
|
30
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_embedding_doc2vec" alt="PyPI - License"/></a>
|
|
31
|
+
<a href="https://pypi.org/project/swarmauri_embedding_doc2vec/">
|
|
32
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_embedding_doc2vec?label=swarmauri_embedding_doc2vec&color=green" alt="PyPI - swarmauri_embedding_doc2vec"/></a>
|
|
33
|
+
</p>
|
|
29
34
|
|
|
30
35
|
---
|
|
31
36
|
|
|
32
|
-
#
|
|
37
|
+
# Swarmauri Embedding Doc2vec
|
|
33
38
|
|
|
34
39
|
A Gensim-based Doc2Vec implementation for document embedding in the Swarmauri ecosystem. This package provides document vectorization capabilities using the Doc2Vec algorithm.
|
|
35
40
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://pypi.org/project/swarmauri_embedding_doc2vec/">
|
|
6
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri_embedding_doc2vec" alt="PyPI - Downloads"/></a>
|
|
7
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/standards/swarmauri_embedding_doc2vec/README.md">
|
|
8
|
+
<img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/standards/swarmauri_embedding_doc2vec/README.md&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
|
|
9
|
+
<a href="https://pypi.org/project/swarmauri_embedding_doc2vec/">
|
|
10
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri_embedding_doc2vec" alt="PyPI - Python Version"/></a>
|
|
11
|
+
<a href="https://pypi.org/project/swarmauri_embedding_doc2vec/">
|
|
12
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_embedding_doc2vec" alt="PyPI - License"/></a>
|
|
13
|
+
<a href="https://pypi.org/project/swarmauri_embedding_doc2vec/">
|
|
14
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_embedding_doc2vec?label=swarmauri_embedding_doc2vec&color=green" alt="PyPI - swarmauri_embedding_doc2vec"/></a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Swarmauri Embedding Doc2vec
|
|
20
|
+
|
|
21
|
+
A Gensim-based Doc2Vec implementation for document embedding in the Swarmauri ecosystem. This package provides document vectorization capabilities using the Doc2Vec algorithm.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install swarmauri_embedding_doc2vec
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
from swarmauri.embeddings.Doc2VecEmbedding import Doc2VecEmbedding
|
|
33
|
+
|
|
34
|
+
# Initialize the embedder
|
|
35
|
+
embedder = Doc2VecEmbedding(vector_size=3000)
|
|
36
|
+
|
|
37
|
+
# Prepare your documents
|
|
38
|
+
documents = ["This is the first document.", "Here is another document.", "And a third one"]
|
|
39
|
+
|
|
40
|
+
# Fit and transform documents
|
|
41
|
+
vectors = embedder.fit_transform(documents)
|
|
42
|
+
|
|
43
|
+
# Transform new documents
|
|
44
|
+
new_doc = "This is a new document"
|
|
45
|
+
vector = embedder.transform([new_doc])
|
|
46
|
+
|
|
47
|
+
# Save and load the model
|
|
48
|
+
embedder.save_model("doc2vec.model")
|
|
49
|
+
embedder.load_model("doc2vec.model")
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Want to help?
|
|
53
|
+
|
|
54
|
+
If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
|
{swarmauri_embedding_doc2vec-0.7.0.dev11 → swarmauri_embedding_doc2vec-0.7.1.dev1}/pyproject.toml
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_embedding_doc2vec"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.1.dev1"
|
|
4
4
|
description = "A Doc2Vec based Embedding Model."
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
readme = "README.md"
|
|
@@ -44,7 +44,7 @@ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
|
|
|
44
44
|
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
|
|
45
45
|
asyncio_default_fixture_loop_scope = "function"
|
|
46
46
|
|
|
47
|
-
[
|
|
47
|
+
[project.entry-points.'swarmauri.embeddings']
|
|
48
48
|
Doc2VecEmbedding = "swarmauri_embedding_doc2vec:Doc2VecEmbedding"
|
|
49
49
|
|
|
50
50
|
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
<div align="center">
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Doc2Vec Embedding
|
|
15
|
-
|
|
16
|
-
A Gensim-based Doc2Vec implementation for document embedding in the Swarmauri ecosystem. This package provides document vectorization capabilities using the Doc2Vec algorithm.
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pip install swarmauri_embedding_doc2vec
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Usage
|
|
25
|
-
|
|
26
|
-
```python
|
|
27
|
-
from swarmauri.embeddings.Doc2VecEmbedding import Doc2VecEmbedding
|
|
28
|
-
|
|
29
|
-
# Initialize the embedder
|
|
30
|
-
embedder = Doc2VecEmbedding(vector_size=3000)
|
|
31
|
-
|
|
32
|
-
# Prepare your documents
|
|
33
|
-
documents = ["This is the first document.", "Here is another document.", "And a third one"]
|
|
34
|
-
|
|
35
|
-
# Fit and transform documents
|
|
36
|
-
vectors = embedder.fit_transform(documents)
|
|
37
|
-
|
|
38
|
-
# Transform new documents
|
|
39
|
-
new_doc = "This is a new document"
|
|
40
|
-
vector = embedder.transform([new_doc])
|
|
41
|
-
|
|
42
|
-
# Save and load the model
|
|
43
|
-
embedder.save_model("doc2vec.model")
|
|
44
|
-
embedder.load_model("doc2vec.model")
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Want to help?
|
|
48
|
-
|
|
49
|
-
If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
|
|
File without changes
|
|
File without changes
|