swarmauri_evaluatorpool_accessibility 0.3.0.dev5__py3-none-any.whl → 0.3.0.dev8__py3-none-any.whl

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.
@@ -0,0 +1,147 @@
1
+ Metadata-Version: 2.4
2
+ Name: swarmauri_evaluatorpool_accessibility
3
+ Version: 0.3.0.dev8
4
+ Summary: A package providing accessibility and readability evaluators for SwarmAuri
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Keywords: accessibility,readability,evaluator,swarmauri,flesch-kincaid,gunning-fog,coleman-liau,automated-readability-index,flesch-reading-ease,text-analysis,nlp,sdk,standards,evaluatorpool,evaluation
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: Natural Language :: English
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Topic :: Text Processing :: Linguistic
19
+ Classifier: Topic :: Software Development :: Quality Assurance
20
+ Classifier: Programming Language :: Python
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Requires-Dist: beautifulsoup4
24
+ Requires-Dist: markdown
25
+ Requires-Dist: nltk
26
+ Requires-Dist: pydantic
27
+ Requires-Dist: swarmauri_base
28
+ Requires-Dist: swarmauri_core
29
+ Requires-Dist: swarmauri_standard
30
+ Description-Content-Type: text/markdown
31
+
32
+ ![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)
33
+
34
+ <p align="center">
35
+ <a href="https://pypi.org/project/swarmauri_evaluatorpool_accessibility/">
36
+ <img src="https://img.shields.io/pypi/dm/swarmauri_evaluatorpool_accessibility" alt="PyPI - Downloads"/>
37
+ </a>
38
+ <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_evaluatorpool_accessibility/">
39
+ <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_evaluatorpool_accessibility.svg"/>
40
+ </a>
41
+ <a href="https://pypi.org/project/swarmauri_evaluatorpool_accessibility/">
42
+ <img src="https://img.shields.io/pypi/pyversions/swarmauri_evaluatorpool_accessibility" alt="PyPI - Python Version"/>
43
+ </a>
44
+ <a href="https://pypi.org/project/swarmauri_evaluatorpool_accessibility/">
45
+ <img src="https://img.shields.io/pypi/l/swarmauri_evaluatorpool_accessibility" alt="PyPI - License"/>
46
+ </a>
47
+ <a href="https://pypi.org/project/swarmauri_evaluatorpool_accessibility/">
48
+ <img src="https://img.shields.io/pypi/v/swarmauri_evaluatorpool_accessibility?label=swarmauri_evaluatorpool_accessibility&color=green" alt="PyPI - swarmauri_evaluatorpool_accessibility"/>
49
+ </a>
50
+ </p>
51
+
52
+ ---
53
+
54
+ # Swarmauri Evaluatorpool Accessibility
55
+
56
+ Accessibility-focused evaluator pool for Swarmauri programs. The pool bundles a
57
+ set of classic readability metrics (Automated Readability Index, Coleman–Liau,
58
+ Flesch–Kincaid Grade, Flesch Reading Ease, and Gunning Fog) and normalises their
59
+ scores onto a single 0–1 scale where higher values mean easier-to-read content.
60
+
61
+ ## Installation
62
+
63
+ ### pip
64
+
65
+ ```bash
66
+ pip install swarmauri_evaluatorpool_accessibility
67
+ ```
68
+
69
+ ### Poetry
70
+
71
+ ```bash
72
+ poetry add swarmauri_evaluatorpool_accessibility
73
+ ```
74
+
75
+ ### uv
76
+
77
+ ```bash
78
+ # Install into the current environment
79
+ uv pip install swarmauri_evaluatorpool_accessibility
80
+
81
+ # Or add it to the project pyproject.toml
82
+ uv add swarmauri_evaluatorpool_accessibility
83
+ ```
84
+
85
+ ## Usage
86
+
87
+ `AccessibilityEvaluatorPool` is a registered `EvaluatorPoolBase` component. It
88
+ expects a sequence of Swarmauri `Program` objects, runs the configured
89
+ evaluators concurrently, then returns standard `EvalResultBase` instances with
90
+ the aggregated score and detailed metadata for every evaluator.
91
+
92
+ ### Example
93
+
94
+ ```python
95
+ from swarmauri_evaluatorpool_accessibility.AccessibilityEvaluatorPool import AccessibilityEvaluatorPool
96
+ from swarmauri_standard.programs.Program import Program
97
+
98
+ program = Program(content={"example.txt": "This is a simple sentence. Here is another one."})
99
+
100
+ pool = AccessibilityEvaluatorPool()
101
+ pool.initialize() # spin up the thread pool once before evaluating
102
+
103
+ results = pool.evaluate([program])
104
+ result = results[0]
105
+
106
+ print(f"Aggregate accessibility score: {result.score:.2f}")
107
+ print("Per-evaluator scores:", result.metadata["evaluator_scores"])
108
+ flesch_meta = result.metadata["evaluator_metadata"].get(
109
+ "FleschReadingEaseEvaluator", {}
110
+ )
111
+ print(
112
+ "Flesch interpretation:",
113
+ flesch_meta.get("readability_interpretation", flesch_meta.get("error", "not available")),
114
+ )
115
+
116
+ pool.shutdown() # release resources when finished
117
+ ```
118
+
119
+ ### Result structure
120
+
121
+ Each entry returned from `evaluate` is an `EvalResultBase` with:
122
+
123
+ - `score`: the weighted mean of the evaluator scores mapped to the 0–1 range.
124
+ - `metadata["evaluator_scores"]`: raw scores keyed by evaluator name.
125
+ - `metadata["evaluator_metadata"]`: evaluator-specific metadata (e.g. sentence
126
+ counts, syllable estimates, interpretation strings).
127
+ - `metadata["aggregate_score"]`: mirrors `.score` for convenience.
128
+
129
+ You can customise the weighting of each evaluator by passing a `weights`
130
+ dictionary (name → float) when constructing the pool.
131
+
132
+ ### Notes
133
+
134
+ - The pool automatically registers the bundled evaluators when no explicit list
135
+ is provided. You can pass your own evaluators that satisfy the `IEvaluate`
136
+ interface to override or extend the defaults.
137
+ - `FleschReadingEaseEvaluator` downloads NLTK's `punkt` tokenizer and
138
+ `cmudict` pronunciation dictionary on first use. Set `NLTK_DATA_DIR` to point
139
+ to a writable cache location if required. When these resources are not
140
+ available the evaluator reports an `"error"` entry in its metadata instead of
141
+ raising an exception.
142
+
143
+ ## Want to help?
144
+
145
+ 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.
146
+
147
+
@@ -5,8 +5,8 @@ swarmauri_evaluatorpool_accessibility/FleschKincaidGradeEvaluator.py,sha256=jif1
5
5
  swarmauri_evaluatorpool_accessibility/FleschReadingEaseEvaluator.py,sha256=DK84vJVVK73cYrr2XTyeXaPyZJO7z1IIspkSdQkBUAg,8778
6
6
  swarmauri_evaluatorpool_accessibility/GunningFogEvaluator.py,sha256=KQUZSG2l6A2V7EYCODJXGvtj5Apd-JuYXIAHaro1ux0,7009
7
7
  swarmauri_evaluatorpool_accessibility/__init__.py,sha256=3VkNBtJLHM4cEuL9eDReA8qLcROeCp1Tx1KdOJYgPbU,1061
8
- swarmauri_evaluatorpool_accessibility-0.3.0.dev5.dist-info/LICENSE,sha256=KuY_Ti4-LaOiJ7LufahogACoVDNPKz3gJD_C2XCSUrE,11346
9
- swarmauri_evaluatorpool_accessibility-0.3.0.dev5.dist-info/METADATA,sha256=r9eP1iiDnDQcTf_XvCITo1zhqHgW6hYXcY65OPPerbs,2386
10
- swarmauri_evaluatorpool_accessibility-0.3.0.dev5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
11
- swarmauri_evaluatorpool_accessibility-0.3.0.dev5.dist-info/entry_points.txt,sha256=Dzgzb68nL5v4PWS2jSq0jvgldrg3U62VonNUjOkdC28,607
12
- swarmauri_evaluatorpool_accessibility-0.3.0.dev5.dist-info/RECORD,,
8
+ swarmauri_evaluatorpool_accessibility-0.3.0.dev8.dist-info/METADATA,sha256=NfIUwMyUmJr5V93i5yaE4eJNjXsvF_ynX0vTIwDUMv0,5956
9
+ swarmauri_evaluatorpool_accessibility-0.3.0.dev8.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
10
+ swarmauri_evaluatorpool_accessibility-0.3.0.dev8.dist-info/entry_points.txt,sha256=Dzgzb68nL5v4PWS2jSq0jvgldrg3U62VonNUjOkdC28,607
11
+ swarmauri_evaluatorpool_accessibility-0.3.0.dev8.dist-info/licenses/LICENSE,sha256=KuY_Ti4-LaOiJ7LufahogACoVDNPKz3gJD_C2XCSUrE,11346
12
+ swarmauri_evaluatorpool_accessibility-0.3.0.dev8.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.3
2
+ Generator: poetry-core 2.3.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,52 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: swarmauri_evaluatorpool_accessibility
3
- Version: 0.3.0.dev5
4
- Summary: A package providing accessibility and readability evaluators for SwarmAuri
5
- License: Apache-2.0
6
- Keywords: accessibility,readability,evaluator,swarmauri,flesch-kincaid,gunning-fog,coleman-liau,automated-readability-index,flesch-reading-ease,text-analysis,nlp
7
- Author: SwarmAuri Team
8
- Author-email: info@swarmauri.com
9
- Requires-Python: >=3.10,<3.13
10
- Classifier: License :: OSI Approved :: Apache Software License
11
- Classifier: Natural Language :: English
12
- Classifier: Programming Language :: Python :: 3.10
13
- Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
- Classifier: Intended Audience :: Developers
16
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
- Classifier: Topic :: Text Processing :: Linguistic
18
- Classifier: Topic :: Software Development :: Quality Assurance
19
- Requires-Dist: beautifulsoup4
20
- Requires-Dist: markdown
21
- Requires-Dist: nltk
22
- Requires-Dist: pydantic
23
- Requires-Dist: swarmauri_base
24
- Requires-Dist: swarmauri_core
25
- Requires-Dist: swarmauri_standard
26
- Description-Content-Type: text/markdown
27
-
28
- ![Swamauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
29
-
30
- <p align="center">
31
- <a href="https://pypi.org/project/swarmauri_evaluatorpool_accessibility/">
32
- <img src="https://img.shields.io/pypi/dm/swarmauri_evaluatorpool_accessibility" alt="PyPI - Downloads"/></a>
33
- <a href="https://pypi.org/project/swarmauri_evaluatorpool_accessibility/">
34
- <img src="https://img.shields.io/pypi/pyversions/swarmauri_evaluatorpool_accessibility" alt="PyPI - Python Version"/></a>
35
- <a href="https://pypi.org/project/swarmauri_evaluatorpool_accessibility/">
36
- <img src="https://img.shields.io/pypi/l/swarmauri_evaluatorpool_accessibility" alt="PyPI - License"/></a>
37
- <a href="https://pypi.org/project/swarmauri_evaluatorpool_accessibility/">
38
- <img src="https://img.shields.io/pypi/v/swarmauri_evaluatorpool_accessibility?label=swarmauri_evaluatorpool_accessibility&color=green" alt="PyPI - swarmauri_evaluatorpool_accessibility"/></a>
39
- </p>
40
-
41
- ---
42
-
43
- # Swarmauri Evaluatorpool Accessibility
44
-
45
- A package providing accessibility and readability evaluators for Swarmauri.
46
-
47
- ## Installation
48
-
49
- ```bash
50
- pip install swarmauri_evaluatorpool_accessibility
51
- ```
52
-