bayanat-labelbench 0.1.0__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,266 @@
1
+ Metadata-Version: 2.4
2
+ Name: bayanat-labelbench
3
+ Version: 0.1.0
4
+ Summary: LabelBench by Bayanat Labs, a reproducible audit of automated Arabic data labeling.
5
+ Author: Bayanat Labs Research
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://www.bayanatlabs.com/research/labelbench
8
+ Project-URL: Repository, https://github.com/Bayanat-Labs/labelbench
9
+ Project-URL: Issues, https://github.com/Bayanat-Labs/labelbench/issues
10
+ Project-URL: Paper, https://www.bayanatlabs.com/research/labelbench-paper-v0.1.pdf
11
+ Keywords: arabic,arabic-nlp,benchmark,data-labeling,annotation-quality,dialect-identification,toxicity-detection,llm-evaluation
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Natural Language :: Arabic
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Classifier: Topic :: Text Processing :: Linguistic
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ License-File: NOTICE
28
+ Dynamic: license-file
29
+
30
+ # LabelBench by Bayanat Labs
31
+
32
+ **Arabic annotation is not binary.**
33
+
34
+ LabelBench is a reproducible audit of automated Arabic data labeling from [Bayanat Labs](https://www.bayanatlabs.com). It measures how much of a labeling queue can be accepted at a declared quality floor, then breaks the answer down by taxonomy, task and Arabic variety.
35
+
36
+ [Project page](https://www.bayanatlabs.com/research/labelbench) · [Technical report (PDF)](https://www.bayanatlabs.com/research/labelbench-paper-v0.1.pdf) · Code Apache-2.0 · Results CC BY 4.0 · Version 0.1.0
37
+
38
+ ## The v0.1 finding
39
+
40
+ A local language model (Qwen 2.5 3B) scored 78% on binary Arabic toxicity. On the real seven-label taxonomy, exact-match accuracy fell to 25.3% on the fixed held-out manifest. Across five dialect regions it reached 22.4%, where chance is 20%. We call this the annotation complexity cliff.
41
+
42
+ | Held-out task | Qwen 2.5 3B zero-shot | Fanar 1 9B zero-shot | Small supervised diagnostic |
43
+ |---|---:|---:|---:|
44
+ | Binary toxicity | 78.0% | 88.0% | 97.0% |
45
+ | Seven-label toxicity (exact set) | 25.3% | 31.3% | 49.0% |
46
+ | Five-region dialect ID | 22.4% | 47.8% | 69.8% |
47
+
48
+ The toxicity rows use seeded AraTox samples of 100 and 300 items. The dialect row uses a balanced 500-item manifest of DART text from IADD, with 100 items for each region.
49
+
50
+ The supervised systems are intentionally small character n-gram models. Their purpose is to establish that the held-out signal is learnable, not to claim state of the art. Arabic specialization helps, but the v0.1 generative runs still have 0% Safe Automation Coverage at a 95% quality target under their tied-confidence JSON protocol. That is a routing-diagnostic limitation, not proof that generative models cannot support selective automation when confidence is properly elicited and calibrated.
51
+
52
+ Every model and baseline, the paired significance tests and per-region recall are in [RESULTS.md](RESULTS.md).
53
+
54
+ ## What is included
55
+
56
+ - Checksummed ingestion for MASSIVE 1.1, AraTox, and IADD/DART
57
+ - Leakage and conflicting-label audits
58
+ - Binary, multi-label, intent, and dialect-region tasks
59
+ - Character n-gram and one-vs-rest diagnostics
60
+ - Local structured-output inference through Ollama
61
+ - A dated OpenAI Responses API adapter with strict JSON Schema and `store=false`
62
+ - Accuracy, exact-set, F1, calibration, bootstrap intervals, confusion matrices
63
+ - Conservative Safe Automation Coverage using a Wilson lower bound
64
+ - Resumable item-level logs with raw responses, model digests, usage, and hashes
65
+ - A blinded offline RTL review app and three-rater aggregation
66
+ - Paper-ready JSON, CSV, Markdown, and SVG release generation
67
+ - The LaTeX source of the technical report
68
+
69
+ ```text
70
+ BENCHMARK.md evaluation specification
71
+ RESULTS.md verified v0.1 findings
72
+ DATA.md third-party sources, pinned revisions and licenses
73
+ labelbench/ dependency-free benchmark package and CLI
74
+ labelbench/templates/ blinded review template
75
+ registry/ data and model provenance gates
76
+ adjudication/ offline human-review protocol
77
+ paper/ LaTeX source and figure script for the technical report
78
+ tests/ deterministic unit tests
79
+ results/ aggregate-only public releases
80
+ ```
81
+
82
+ ## Install
83
+
84
+ LabelBench needs Python 3.10 or newer and has no third-party runtime dependencies.
85
+
86
+ ```bash
87
+ pip install bayanat-labelbench
88
+ labelbench --help
89
+ ```
90
+
91
+ Or install from source:
92
+
93
+ ```bash
94
+ git clone https://github.com/Bayanat-Labs/labelbench.git
95
+ cd labelbench
96
+ pip install -e .
97
+ labelbench --help
98
+ ```
99
+
100
+ From a checkout you can also run `python3 -m labelbench` without installing. Tested on Python 3.10 to 3.13.
101
+
102
+ ## Reproduce the core results
103
+
104
+ Each command downloads its source from the original location at a pinned revision and checks its SHA-256 before use (see [DATA.md](DATA.md)). Downloads and normalized manifests go to `$LABELBENCH_CACHE_DIR` when it is set, and otherwise to `labelbench/` in your user cache directory (`~/.cache` on Linux, `~/Library/Caches` on macOS, `%LOCALAPPDATA%` on Windows). Every data command also accepts `--cache-dir`.
105
+
106
+ The v0.1 runs kept downloads inside the checkout. To do the same, run these commands from the repository root:
107
+
108
+ ```bash
109
+ export LABELBENCH_CACHE_DIR=data
110
+
111
+ python3 -m unittest discover -s tests -v
112
+
113
+ labelbench pilot-aratox \
114
+ --test-limit 100 --random-test \
115
+ --output runs/aratox-binary-sample100
116
+
117
+ labelbench pilot-aratox-multilabel \
118
+ --test-limit 300 --random-test --tune-thresholds \
119
+ --output runs/aratox-multilabel-sample300
120
+
121
+ labelbench pilot-ollama-aratox-multilabel \
122
+ --model qwen2.5:3b --test-limit 300 \
123
+ --output runs/ollama-aratox-multilabel-pilot-300
124
+
125
+ labelbench pilot-ollama-aratox \
126
+ --model hf.co/yasserrmd/Fanar-1-9B-Instruct-gguf:Q4_K_M \
127
+ --test-limit 100 \
128
+ --output runs/ollama-aratox-random-pilot-100
129
+
130
+ labelbench pilot-ollama-aratox \
131
+ --model qwen2.5:3b --test-limit 100 \
132
+ --output runs/ollama-aratox-random-pilot-100
133
+
134
+ labelbench pilot-ollama-aratox-multilabel \
135
+ --model hf.co/yasserrmd/Fanar-1-9B-Instruct-gguf:Q4_K_M --test-limit 300 \
136
+ --output runs/ollama-aratox-multilabel-pilot-300
137
+
138
+ labelbench pilot-ollama-iadd \
139
+ --model hf.co/yasserrmd/Fanar-1-9B-Instruct-gguf:Q4_K_M --per-region 100 \
140
+ --output runs/ollama-iadd-region-pilot-500
141
+
142
+ labelbench pilot-iadd-supervised \
143
+ --train-per-region 100 --test-per-region 100 \
144
+ --output runs/iadd-supervised-diagnostic
145
+
146
+ labelbench pilot-ollama-iadd \
147
+ --model qwen2.5:3b --per-region 100 \
148
+ --output runs/ollama-iadd-region-pilot-500
149
+ ```
150
+
151
+ `data/` and `runs/` are created locally by these commands. Both are listed in `.gitignore` and are not part of this repository.
152
+
153
+ The Ollama commands need a local [Ollama](https://ollama.com) server with the model already pulled, for example `ollama pull qwen2.5:3b`.
154
+
155
+ All inference commands resume safely. A cached prediction is accepted only when its stable ID and gold label match the current manifest.
156
+
157
+ The exact v0.1 generative results used categorical JSON confidence. For the next confidence-enabled experiment matrix, add `--confidence-mode verbalized` to the Ollama commands. Those runs are intentionally new model IDs rather than exact reproductions of the v0.1 reports.
158
+
159
+ ### Build a public release
160
+
161
+ Pass the exact reports intended for publication:
162
+
163
+ ```bash
164
+ labelbench build-release \
165
+ --release-id labelbench-v0.1 \
166
+ --output runs/release-v0.1 \
167
+ --reports \
168
+ runs/aratox-binary-sample100/char_ngram_nb/report.json \
169
+ runs/ollama-aratox-random-pilot-100/ollama_qwen2.5_3b_zero_shot/report.json \
170
+ runs/ollama-aratox-random-pilot-100/ollama_hf.co_yasserrmd_Fanar-1-9B-Instruct-gguf_Q4_K_M_zero_shot/report.json \
171
+ runs/aratox-multilabel-sample300/char_ngram_nb_ovr_tuned/report.json \
172
+ runs/ollama-aratox-multilabel-pilot-300/ollama_qwen2.5_3b_multilabel_zero_shot/report.json \
173
+ runs/ollama-aratox-multilabel-pilot-300/ollama_hf.co_yasserrmd_Fanar-1-9B-Instruct-gguf_Q4_K_M_multilabel_zero_shot/report.json \
174
+ runs/iadd-supervised-diagnostic/char_ngram_nb/report.json \
175
+ runs/ollama-iadd-region-pilot-500/ollama_qwen2.5_3b_dialect_region_zero_shot/report.json \
176
+ runs/ollama-iadd-region-pilot-500/ollama_hf.co_yasserrmd_Fanar-1-9B-Instruct-gguf_Q4_K_M_dialect_region_zero_shot/report.json
177
+ ```
178
+
179
+ The published `results/v0.1` also includes the Qwen 2 7B, Llama 3 8B and MASSIVE intent reports, plus eight `compare-runs` outputs passed with `--comparisons`. Write test builds outside `results/` so the published files stay unchanged.
180
+
181
+ The output includes `summary.json`, `leaderboard.csv`, a human-readable table, a task chart, and a dialect confusion heatmap. No source text is copied into the release.
182
+
183
+ ### Human adjudication
184
+
185
+ Create a blinded review bundle (the examples path assumes `LABELBENCH_CACHE_DIR=data`, as above):
186
+
187
+ ```bash
188
+ labelbench make-review-bundle \
189
+ --examples data/normalized/aratox_multilabel_test_sample300_seed42.jsonl \
190
+ --manifest adjudication/bundles/aratox-review-manifest.json \
191
+ --bundle adjudication/bundles/aratox-review.html
192
+ ```
193
+
194
+ The review template ships with the package. Pass `--template` to use your own. Reviewers work offline. Model predictions are never shown. The application enforces the exclusive `not` label, stores progress locally, and exports a pseudonymous JSON submission. See [adjudication/README.md](adjudication/README.md).
195
+
196
+ ### Frontier API adapter
197
+
198
+ The OpenAI adapter follows the current Responses API structured-output shape:
199
+
200
+ - <https://developers.openai.com/api/docs/guides/structured-outputs>
201
+ - <https://developers.openai.com/api/reference/resources/responses/methods/create>
202
+
203
+ Copy `.env.example`, export `OPENAI_API_KEY`, and use a dated model snapshot:
204
+
205
+ ```bash
206
+ labelbench pilot-openai-iadd \
207
+ --model gpt-5.4-mini-2026-03-17 \
208
+ --per-region 100 \
209
+ --confidence-mode verbalized \
210
+ --output runs/openai-iadd-region-pilot-500
211
+ ```
212
+
213
+ Credentials are never read from files or written to run artifacts.
214
+
215
+ Do not paste API keys into chats, issues, or notebooks. Export them in the shell environment for the single run and rotate any key that was ever shared in plain text.
216
+
217
+ ## Data sources and licenses
218
+
219
+ - Code: Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
220
+ - Results, registry, specification and paper source written by Bayanat Labs: CC BY 4.0. See [LICENSE-data](LICENSE-data).
221
+ - Third-party data is not stored in this repository. The commands download each source from its original location and check its SHA-256. Each source keeps its own license. See [DATA.md](DATA.md).
222
+ - The Bayanat Labs name and logo are not licensed.
223
+
224
+ MASSIVE and AraTox are pinned CC BY 4.0 sources. IADD/DART text is treated as evaluation-only because the repository does not include an explicit data license, even though the accompanying Data in Brief article is CC BY. Public releases contain aggregate results and cryptographic identifiers only.
225
+
226
+ Raw data, normalized text, review submissions, and model outputs are ignored by Git. Do not publish those directories without a separate source and privacy review.
227
+
228
+ ## Results and paper
229
+
230
+ - [results/v0.1/](results/v0.1/) holds `summary.json`, `leaderboard.csv`, eight paired comparison files and two charts. `summary.json` and `leaderboard.csv` match the downloads on the project page byte for byte.
231
+ - [RESULTS.md](RESULTS.md) has the verified v0.1 findings, and [BENCHMARK.md](BENCHMARK.md) the evaluation specification.
232
+ - The technical report is on the [project page](https://www.bayanatlabs.com/research/labelbench) as a [PDF](https://www.bayanatlabs.com/research/labelbench-paper-v0.1.pdf). Its LaTeX source is in [paper/](paper/). `paper/make_figures.py` needs `reportlab`, which LabelBench itself does not use.
233
+
234
+ ## Limitations
235
+
236
+ - **Small local models.** The v0.1 generative results come from four-bit quantized local models of 3B to 9B parameters, run through Ollama. They do not describe frontier or API models. v0.1 contains no frontier API results and no human adjudication results. The API adapter and review bundles are ready for the next release.
237
+ - **Tied-confidence protocol.** The v0.1 generative runs emit categorical JSON confidence, not calibrated confidence. Their 0% Safe Automation Coverage is a limitation of this harness setup, not evidence that selective automation is impossible.
238
+ - **v0.1 scope.** v0.1 covers four task families on fixed samples of 100 to 2,974 items. The dialect task uses five coarse regions from one source (DART) and cannot establish country-level performance. MASSIVE is localized from English and serves only as an engineering control. AraTox rows carry no per-item dialect labels.
239
+
240
+ ## Cite
241
+
242
+ If you use LabelBench, please cite the technical report. GitHub's "Cite this repository" button reads [CITATION.cff](CITATION.cff). A Zenodo DOI will be added with the first GitHub release.
243
+
244
+ ```bibtex
245
+ @techreport{bayanat2026labelbench,
246
+ title = {Arabic Annotation Is Not Binary: LabelBench, a Reproducible Audit of Automated Data Labeling},
247
+ author = {{Bayanat Labs Research}},
248
+ institution = {Bayanat Labs},
249
+ year = {2026},
250
+ month = jul,
251
+ number = {v0.1},
252
+ url = {https://www.bayanatlabs.com/research/labelbench}
253
+ }
254
+ ```
255
+
256
+ ## Contributing
257
+
258
+ Issues and pull requests are welcome. Please read the [contributing guide](https://github.com/Bayanat-Labs/.github/blob/main/CONTRIBUTING.md) and open an issue before larger changes. For questions about the data, email [hello@bayanatlabs.com](mailto:hello@bayanatlabs.com).
259
+
260
+ ---
261
+
262
+ ### About Bayanat Labs
263
+
264
+ [Bayanat Labs](https://www.bayanatlabs.com) is a Riyadh-based Arabic data company for AI. We work only on data, from sourcing and annotation to alignment and evaluation, across 25+ Arabic varieties, with vetted native speakers, linguists and licensed domain professionals.
265
+
266
+ [Run a pilot](https://www.bayanatlabs.com/pilot) · [Datasets](https://www.bayanatlabs.com/products) · [LinkedIn](https://www.linkedin.com/company/bayanat-labs/) · [hello@bayanatlabs.com](mailto:hello@bayanatlabs.com)
@@ -0,0 +1,24 @@
1
+ bayanat_labelbench-0.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
2
+ bayanat_labelbench-0.1.0.dist-info/licenses/NOTICE,sha256=Ur9oQihpYB6wNC95jYYvtnZyRcymtN6MM-6KjTsxn-4,689
3
+ labelbench/__init__.py,sha256=jIMs1iC2pCc5Af7rYZ9_BmsQOiUvou31uh2NxdOJRYE,113
4
+ labelbench/__main__.py,sha256=MHKZ_ae3fSLGTLUUMOx15fWdeOnJSHhq-zslRP5F5Lc,79
5
+ labelbench/adjudication.py,sha256=JX7ygVlqqICuWDX5Glodc4g6k_ICu_Y24CmUG-HeJqk,7742
6
+ labelbench/audit.py,sha256=9raKoWGhEBoVPk0id3UvEhvIfAl7tVsou-GGt1LE86c,2912
7
+ labelbench/cli.py,sha256=Zl7VV0NqlOYefuIcdf_RPbb27IiG3uKLT9Xwi8ADEL4,22262
8
+ labelbench/comparisons.py,sha256=fLvGmmrfnPiQikORtZD7r46m45cBUfSo_T0lyfP43oU,3563
9
+ labelbench/datasets.py,sha256=Jx-1Yn3Nw3PZDzpGZPcXXCfOvfhQEyP-pbtNPwubll8,20099
10
+ labelbench/metrics.py,sha256=JOkl90DLqhMI-e1T2P81hiGhvua54vrItUnp8y-wNDQ,7915
11
+ labelbench/models.py,sha256=iBv6Ex6YQkoueG3F7IZe_ZEeU6zqcdBEUHEOzUNqFxM,11093
12
+ labelbench/multilabel_metrics.py,sha256=F0hKqDHkizhqSc5QA6T1cCKL7zbbhO7vnTWtuMiu4lA,3353
13
+ labelbench/multilabel_runner.py,sha256=SiAQH-LfqlCW44js3EID_DEHNYIVrNX3EWycTh0RGyk,5775
14
+ labelbench/ollama.py,sha256=I0_O2hS7-FMZGGQURN7v5RI2YJtVL_Y-lbSQtmct3eI,14987
15
+ labelbench/openai_api.py,sha256=PGd-F5kzy1M3F9QVGdD6CZ2QE2mhd3INUQ7_CYLoaMY,6585
16
+ labelbench/paths.py,sha256=4NmTCtgdo-iEqTwsIPvwaeeBSz5emUiC3QMxggY_56A,1280
17
+ labelbench/reporting.py,sha256=TTdb69jDXekUswU_1Z1z1hvkd8ANp1RYx0zOqqzQZjQ,11243
18
+ labelbench/runner.py,sha256=GuMNoOAb4EaVTVNyWer65abk22bFKy8osPffPww3Xqo,6952
19
+ labelbench/templates/review_template.html,sha256=-rIk-WimkBjRoZqCxLOCaCMAxPM-eBQ1FHFqK0a-8JY,9535
20
+ bayanat_labelbench-0.1.0.dist-info/METADATA,sha256=02EEXSxkUZfxCFy6yIQsPbu_ambOOh2A19wH4SscTNE,14407
21
+ bayanat_labelbench-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
22
+ bayanat_labelbench-0.1.0.dist-info/entry_points.txt,sha256=FlN3j7NAN9xW01RyiZvCsw5n0JYJKK9wZBPnZoCJIQY,51
23
+ bayanat_labelbench-0.1.0.dist-info/top_level.txt,sha256=BMM1C0Vy71aeVro-MTWDIVtMk-STEoJzGvUvaDHWWH0,11
24
+ bayanat_labelbench-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ labelbench = labelbench.cli:main
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,15 @@
1
+ LabelBench by Bayanat Labs
2
+ Copyright 2026 Bayanat Labs
3
+
4
+ This product includes software developed by Bayanat Labs (https://www.bayanatlabs.com).
5
+
6
+ The code in this repository is licensed under the Apache License 2.0 (LICENSE).
7
+ The results, registry, specification and paper files listed in LICENSE-data
8
+ are licensed under the Creative Commons Attribution 4.0 International License.
9
+
10
+ No third-party dataset is included in this repository. The code downloads each
11
+ source from its original location, and each source keeps its own license.
12
+ See DATA.md.
13
+
14
+ The Bayanat Labs name, logo and project branding are not licensed under the
15
+ Apache License 2.0 or under any data license in this repository.
@@ -0,0 +1 @@
1
+ labelbench
labelbench/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """LabelBench by Bayanat Labs: a reproducible audit of automated Arabic data labeling."""
2
+
3
+ __version__ = "0.1.0"
labelbench/__main__.py ADDED
@@ -0,0 +1,4 @@
1
+ from .cli import main
2
+
3
+ if __name__ == "__main__":
4
+ raise SystemExit(main())