swarmauri_parser_textblob 0.9.0.dev4__tar.gz → 0.9.2.dev6__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_parser_textblob-0.9.2.dev6/PKG-INFO +107 -0
- swarmauri_parser_textblob-0.9.2.dev6/README.md +81 -0
- {swarmauri_parser_textblob-0.9.0.dev4 → swarmauri_parser_textblob-0.9.2.dev6}/pyproject.toml +10 -1
- swarmauri_parser_textblob-0.9.0.dev4/PKG-INFO +0 -71
- swarmauri_parser_textblob-0.9.0.dev4/README.md +0 -51
- {swarmauri_parser_textblob-0.9.0.dev4 → swarmauri_parser_textblob-0.9.2.dev6}/LICENSE +0 -0
- {swarmauri_parser_textblob-0.9.0.dev4 → swarmauri_parser_textblob-0.9.2.dev6}/swarmauri_parser_textblob/TextBlobNounParser.py +0 -0
- {swarmauri_parser_textblob-0.9.0.dev4 → swarmauri_parser_textblob-0.9.2.dev6}/swarmauri_parser_textblob/TextBlobSentenceParser.py +0 -0
- {swarmauri_parser_textblob-0.9.0.dev4 → swarmauri_parser_textblob-0.9.2.dev6}/swarmauri_parser_textblob/__init__.py +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swarmauri_parser_textblob
|
|
3
|
+
Version: 0.9.2.dev6
|
|
4
|
+
Summary: TextBlob Parser for Swarmauri.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: swarmauri,parser,textblob
|
|
8
|
+
Author: Jacob Stewart
|
|
9
|
+
Author-email: jacob@swarmauri.com
|
|
10
|
+
Requires-Python: >=3.10,<3.13
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Natural Language :: English
|
|
16
|
+
Classifier: Development Status :: 3 - Alpha
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
19
|
+
Requires-Dist: nltk (>=3.9.1)
|
|
20
|
+
Requires-Dist: swarmauri_base
|
|
21
|
+
Requires-Dist: swarmauri_core
|
|
22
|
+
Requires-Dist: swarmauri_standard
|
|
23
|
+
Requires-Dist: textblob (>=0.18.0)
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
<p align="center">
|
|
29
|
+
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
30
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri_parser_textblob" alt="PyPI - Downloads"/></a>
|
|
31
|
+
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_parser_textblob/">
|
|
32
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_parser_textblob.svg"/></a>
|
|
33
|
+
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
34
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri_parser_textblob" alt="PyPI - Python Version"/></a>
|
|
35
|
+
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
36
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_parser_textblob" alt="PyPI - License"/></a>
|
|
37
|
+
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
38
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_parser_textblob?label=swarmauri_parser_textblob&color=green" alt="PyPI - swarmauri_parser_textblob"/></a>
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
# Swarmauri Parser TextBlob
|
|
44
|
+
|
|
45
|
+
TextBlob-backed parsers for Swarmauri that split text into sentences or extract noun phrases. Ships two components: `TextBlobSentenceParser` and `TextBlobNounParser`.
|
|
46
|
+
|
|
47
|
+
## Features
|
|
48
|
+
|
|
49
|
+
- Sentence parser returns a `Document` per sentence with metadata identifying the parser.
|
|
50
|
+
- Noun phrase parser returns the original text plus `metadata['noun_phrases']` containing the phrases discovered by TextBlob.
|
|
51
|
+
- Auto-downloads required NLTK corpora (`punkt_tab`) during initialization.
|
|
52
|
+
|
|
53
|
+
## Prerequisites
|
|
54
|
+
|
|
55
|
+
- Python 3.10 or newer.
|
|
56
|
+
- [TextBlob](https://textblob.readthedocs.io/) and its NLTK dependencies (installed automatically).
|
|
57
|
+
- Internet access on first run so NLTK can download tokenizer data (or pre-download via `python -m textblob.download_corpora`).
|
|
58
|
+
|
|
59
|
+
## Installation
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# pip
|
|
63
|
+
pip install swarmauri_parser_textblob
|
|
64
|
+
|
|
65
|
+
# poetry
|
|
66
|
+
poetry add swarmauri_parser_textblob
|
|
67
|
+
|
|
68
|
+
# uv (pyproject-based projects)
|
|
69
|
+
uv add swarmauri_parser_textblob
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Sentence Parsing
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
from swarmauri_parser_textblob import TextBlobSentenceParser
|
|
76
|
+
|
|
77
|
+
parser = TextBlobSentenceParser()
|
|
78
|
+
text = "One more large chapula please. It should be extra spicy!"
|
|
79
|
+
|
|
80
|
+
sentences = parser.parse(text)
|
|
81
|
+
for doc in sentences:
|
|
82
|
+
print(doc.content)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Noun Phrase Extraction
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
from swarmauri_parser_textblob import TextBlobNounParser
|
|
89
|
+
|
|
90
|
+
parser = TextBlobNounParser()
|
|
91
|
+
docs = parser.parse("One more large chapula please.")
|
|
92
|
+
|
|
93
|
+
for doc in docs:
|
|
94
|
+
print(doc.content)
|
|
95
|
+
print(doc.metadata["noun_phrases"])
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Tips
|
|
99
|
+
|
|
100
|
+
- TextBlob uses simple heuristics—it works well for general English text but may struggle with domain-specific jargon.
|
|
101
|
+
- Download corpora once in CI/CD or container builds (`python -m textblob.download_corpora`) to avoid runtime downloads.
|
|
102
|
+
- Combine sentence and noun parsers to build structured representations of documents before vectorization or downstream NLP tasks.
|
|
103
|
+
|
|
104
|
+
## Want to help?
|
|
105
|
+
|
|
106
|
+
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.
|
|
107
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
5
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri_parser_textblob" alt="PyPI - Downloads"/></a>
|
|
6
|
+
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_parser_textblob/">
|
|
7
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_parser_textblob.svg"/></a>
|
|
8
|
+
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
9
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri_parser_textblob" alt="PyPI - Python Version"/></a>
|
|
10
|
+
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
11
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_parser_textblob" alt="PyPI - License"/></a>
|
|
12
|
+
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
13
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_parser_textblob?label=swarmauri_parser_textblob&color=green" alt="PyPI - swarmauri_parser_textblob"/></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Swarmauri Parser TextBlob
|
|
19
|
+
|
|
20
|
+
TextBlob-backed parsers for Swarmauri that split text into sentences or extract noun phrases. Ships two components: `TextBlobSentenceParser` and `TextBlobNounParser`.
|
|
21
|
+
|
|
22
|
+
## Features
|
|
23
|
+
|
|
24
|
+
- Sentence parser returns a `Document` per sentence with metadata identifying the parser.
|
|
25
|
+
- Noun phrase parser returns the original text plus `metadata['noun_phrases']` containing the phrases discovered by TextBlob.
|
|
26
|
+
- Auto-downloads required NLTK corpora (`punkt_tab`) during initialization.
|
|
27
|
+
|
|
28
|
+
## Prerequisites
|
|
29
|
+
|
|
30
|
+
- Python 3.10 or newer.
|
|
31
|
+
- [TextBlob](https://textblob.readthedocs.io/) and its NLTK dependencies (installed automatically).
|
|
32
|
+
- Internet access on first run so NLTK can download tokenizer data (or pre-download via `python -m textblob.download_corpora`).
|
|
33
|
+
|
|
34
|
+
## Installation
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# pip
|
|
38
|
+
pip install swarmauri_parser_textblob
|
|
39
|
+
|
|
40
|
+
# poetry
|
|
41
|
+
poetry add swarmauri_parser_textblob
|
|
42
|
+
|
|
43
|
+
# uv (pyproject-based projects)
|
|
44
|
+
uv add swarmauri_parser_textblob
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Sentence Parsing
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
from swarmauri_parser_textblob import TextBlobSentenceParser
|
|
51
|
+
|
|
52
|
+
parser = TextBlobSentenceParser()
|
|
53
|
+
text = "One more large chapula please. It should be extra spicy!"
|
|
54
|
+
|
|
55
|
+
sentences = parser.parse(text)
|
|
56
|
+
for doc in sentences:
|
|
57
|
+
print(doc.content)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Noun Phrase Extraction
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
from swarmauri_parser_textblob import TextBlobNounParser
|
|
64
|
+
|
|
65
|
+
parser = TextBlobNounParser()
|
|
66
|
+
docs = parser.parse("One more large chapula please.")
|
|
67
|
+
|
|
68
|
+
for doc in docs:
|
|
69
|
+
print(doc.content)
|
|
70
|
+
print(doc.metadata["noun_phrases"])
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Tips
|
|
74
|
+
|
|
75
|
+
- TextBlob uses simple heuristics—it works well for general English text but may struggle with domain-specific jargon.
|
|
76
|
+
- Download corpora once in CI/CD or container builds (`python -m textblob.download_corpora`) to avoid runtime downloads.
|
|
77
|
+
- Combine sentence and noun parsers to build structured representations of documents before vectorization or downstream NLP tasks.
|
|
78
|
+
|
|
79
|
+
## Want to help?
|
|
80
|
+
|
|
81
|
+
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_parser_textblob-0.9.0.dev4 → swarmauri_parser_textblob-0.9.2.dev6}/pyproject.toml
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_parser_textblob"
|
|
3
|
-
version = "0.9.
|
|
3
|
+
version = "0.9.2.dev6"
|
|
4
4
|
description = "TextBlob Parser for Swarmauri."
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
readme = "README.md"
|
|
@@ -11,6 +11,10 @@ classifiers = [
|
|
|
11
11
|
"Programming Language :: Python :: 3.10",
|
|
12
12
|
"Programming Language :: Python :: 3.11",
|
|
13
13
|
"Programming Language :: Python :: 3.12",
|
|
14
|
+
"Natural Language :: English",
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
14
18
|
]
|
|
15
19
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
16
20
|
dependencies = [
|
|
@@ -20,6 +24,11 @@ dependencies = [
|
|
|
20
24
|
"swarmauri_base",
|
|
21
25
|
"swarmauri_standard",
|
|
22
26
|
]
|
|
27
|
+
keywords = [
|
|
28
|
+
"swarmauri",
|
|
29
|
+
"parser",
|
|
30
|
+
"textblob",
|
|
31
|
+
]
|
|
23
32
|
|
|
24
33
|
[tool.uv.sources]
|
|
25
34
|
swarmauri_core = { workspace = true }
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: swarmauri_parser_textblob
|
|
3
|
-
Version: 0.9.0.dev4
|
|
4
|
-
Summary: TextBlob Parser for Swarmauri.
|
|
5
|
-
License: Apache-2.0
|
|
6
|
-
Author: Jacob Stewart
|
|
7
|
-
Author-email: jacob@swarmauri.com
|
|
8
|
-
Requires-Python: >=3.10,<3.13
|
|
9
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Requires-Dist: nltk (>=3.9.1)
|
|
14
|
-
Requires-Dist: swarmauri_base
|
|
15
|
-
Requires-Dist: swarmauri_core
|
|
16
|
-
Requires-Dist: swarmauri_standard
|
|
17
|
-
Requires-Dist: textblob (>=0.18.0)
|
|
18
|
-
Description-Content-Type: text/markdown
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-

|
|
22
|
-
|
|
23
|
-
<p align="center">
|
|
24
|
-
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
25
|
-
<img src="https://img.shields.io/pypi/dm/swarmauri_parser_textblob" alt="PyPI - Downloads"/></a>
|
|
26
|
-
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_parser_textblob/">
|
|
27
|
-
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_parser_textblob.svg"/></a>
|
|
28
|
-
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
29
|
-
<img src="https://img.shields.io/pypi/pyversions/swarmauri_parser_textblob" alt="PyPI - Python Version"/></a>
|
|
30
|
-
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
31
|
-
<img src="https://img.shields.io/pypi/l/swarmauri_parser_textblob" alt="PyPI - License"/></a>
|
|
32
|
-
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
33
|
-
<img src="https://img.shields.io/pypi/v/swarmauri_parser_textblob?label=swarmauri_parser_textblob&color=green" alt="PyPI - swarmauri_parser_textblob"/></a>
|
|
34
|
-
</p>
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
# Swarmauri Parser TextBlob
|
|
39
|
-
|
|
40
|
-
A parser package that leverages TextBlob for natural language processing tasks such as sentence parsing and noun phrase extraction.
|
|
41
|
-
|
|
42
|
-
## Installation
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
pip install swarmauri_parser_textblob
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Usage
|
|
49
|
-
Basic usage examples with code snippets
|
|
50
|
-
```python
|
|
51
|
-
from swarmauri.parsers.TextBlobSentenceParser import TextBlobSentenceParser
|
|
52
|
-
from swarmauri.parsers.TextBlobNounParser import TextBlobNounParser
|
|
53
|
-
|
|
54
|
-
# Example usage of TextBlobSentenceParser
|
|
55
|
-
sentence_parser = TextBlobSentenceParser()
|
|
56
|
-
sentences = sentence_parser.parse("One more large chapula please.")
|
|
57
|
-
for doc in sentences:
|
|
58
|
-
print(doc.content)
|
|
59
|
-
|
|
60
|
-
# Example usage of TextBlobNounParser
|
|
61
|
-
noun_parser = TextBlobNounParser()
|
|
62
|
-
documents = noun_parser.parse("One more large chapula please.")
|
|
63
|
-
for doc in documents:
|
|
64
|
-
print(doc.content)
|
|
65
|
-
print(doc.metadata["noun_phrases"])
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Want to help?
|
|
69
|
-
|
|
70
|
-
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.
|
|
71
|
-
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-

|
|
3
|
-
|
|
4
|
-
<p align="center">
|
|
5
|
-
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
6
|
-
<img src="https://img.shields.io/pypi/dm/swarmauri_parser_textblob" alt="PyPI - Downloads"/></a>
|
|
7
|
-
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_parser_textblob/">
|
|
8
|
-
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_parser_textblob.svg"/></a>
|
|
9
|
-
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
10
|
-
<img src="https://img.shields.io/pypi/pyversions/swarmauri_parser_textblob" alt="PyPI - Python Version"/></a>
|
|
11
|
-
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
12
|
-
<img src="https://img.shields.io/pypi/l/swarmauri_parser_textblob" alt="PyPI - License"/></a>
|
|
13
|
-
<a href="https://pypi.org/project/swarmauri_parser_textblob/">
|
|
14
|
-
<img src="https://img.shields.io/pypi/v/swarmauri_parser_textblob?label=swarmauri_parser_textblob&color=green" alt="PyPI - swarmauri_parser_textblob"/></a>
|
|
15
|
-
</p>
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Swarmauri Parser TextBlob
|
|
20
|
-
|
|
21
|
-
A parser package that leverages TextBlob for natural language processing tasks such as sentence parsing and noun phrase extraction.
|
|
22
|
-
|
|
23
|
-
## Installation
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
pip install swarmauri_parser_textblob
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Usage
|
|
30
|
-
Basic usage examples with code snippets
|
|
31
|
-
```python
|
|
32
|
-
from swarmauri.parsers.TextBlobSentenceParser import TextBlobSentenceParser
|
|
33
|
-
from swarmauri.parsers.TextBlobNounParser import TextBlobNounParser
|
|
34
|
-
|
|
35
|
-
# Example usage of TextBlobSentenceParser
|
|
36
|
-
sentence_parser = TextBlobSentenceParser()
|
|
37
|
-
sentences = sentence_parser.parse("One more large chapula please.")
|
|
38
|
-
for doc in sentences:
|
|
39
|
-
print(doc.content)
|
|
40
|
-
|
|
41
|
-
# Example usage of TextBlobNounParser
|
|
42
|
-
noun_parser = TextBlobNounParser()
|
|
43
|
-
documents = noun_parser.parse("One more large chapula please.")
|
|
44
|
-
for doc in documents:
|
|
45
|
-
print(doc.content)
|
|
46
|
-
print(doc.metadata["noun_phrases"])
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Want to help?
|
|
50
|
-
|
|
51
|
-
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
|
|
File without changes
|
|
File without changes
|