Publish v2-rc3 release
Browse files- .gitattributes +1 -33
- .gitignore +3 -0
- LICENSE +73 -0
- NOTICE +17 -0
- README.md +176 -0
- config.json +250 -0
- eval/benchmark_summary.json +2123 -0
- eval/benchmark_summary.md +42 -0
- eval/multilabel_summary.json +1298 -0
- eval/ppsn_only_summary.json +812 -0
- inference_mask.py +181 -0
- inference_mask_onnx.py +78 -0
- label_meta.json +131 -0
- model.safetensors +3 -0
- onnx/config.json +250 -0
- onnx/label_meta.json +131 -0
- onnx/model_quantized.onnx +3 -0
- onnx/onnx_export.json +18 -0
- onnx/quantization.json +25 -0
- onnx/special_tokens_map.json +37 -0
- onnx/tokenizer.json +0 -0
- onnx/tokenizer_config.json +61 -0
- onnx/vocab.txt +0 -0
- onnx_token_classifier.py +207 -0
- pyproject.toml +18 -0
- qa_config.json +31 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +61 -0
- training_sources.json +69 -0
- vocab.txt +0 -0
.gitattributes
CHANGED
|
@@ -1,35 +1,3 @@
|
|
| 1 |
-
*.
|
| 2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 2 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
.venv/
|
| 3 |
+
*.pyc
|
LICENSE
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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, and distribution as defined by Sections 1 through 9 of this document.
|
| 10 |
+
|
| 11 |
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
| 12 |
+
|
| 13 |
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
| 14 |
+
|
| 15 |
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
| 16 |
+
|
| 17 |
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
| 18 |
+
|
| 19 |
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
| 20 |
+
|
| 21 |
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
| 22 |
+
|
| 23 |
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
| 24 |
+
|
| 25 |
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
| 26 |
+
|
| 27 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
| 28 |
+
|
| 29 |
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
| 30 |
+
|
| 31 |
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
| 32 |
+
|
| 33 |
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
| 34 |
+
|
| 35 |
+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
| 36 |
+
|
| 37 |
+
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
| 38 |
+
|
| 39 |
+
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
| 40 |
+
|
| 41 |
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
| 42 |
+
|
| 43 |
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
| 44 |
+
|
| 45 |
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
| 46 |
+
|
| 47 |
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
| 48 |
+
|
| 49 |
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
| 50 |
+
|
| 51 |
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
| 52 |
+
|
| 53 |
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
| 54 |
+
|
| 55 |
+
END OF TERMS AND CONDITIONS
|
| 56 |
+
|
| 57 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 58 |
+
|
| 59 |
+
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
| 60 |
+
|
| 61 |
+
Copyright [yyyy] [name of copyright owner]
|
| 62 |
+
|
| 63 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 64 |
+
you may not use this file except in compliance with the License.
|
| 65 |
+
You may obtain a copy of the License at
|
| 66 |
+
|
| 67 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 68 |
+
|
| 69 |
+
Unless required by applicable law or agreed to in writing, software
|
| 70 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 71 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 72 |
+
See the License for the specific language governing permissions and
|
| 73 |
+
limitations under the License.
|
NOTICE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
OpenMed PPSN Extension
|
| 2 |
+
Copyright 2026 Contributors
|
| 3 |
+
|
| 4 |
+
This project includes fine-tuned/derived model artifacts from:
|
| 5 |
+
- OpenMed/OpenMed-PII-SuperClinical-Large-434M-v1 (Hugging Face)
|
| 6 |
+
Declared license: Apache-2.0.
|
| 7 |
+
|
| 8 |
+
This project uses evaluation/training data sources including:
|
| 9 |
+
- nvidia/Nemotron-PII (Hugging Face dataset)
|
| 10 |
+
Declared license: CC-BY-4.0.
|
| 11 |
+
|
| 12 |
+
Attribution and links:
|
| 13 |
+
- OpenMed base model: https://huggingface.co/OpenMed/OpenMed-PII-SuperClinical-Large-434M-v1
|
| 14 |
+
- Nemotron-PII dataset: https://huggingface.co/datasets/nvidia/Nemotron-PII
|
| 15 |
+
|
| 16 |
+
If you redistribute models or checkpoints produced here, keep this NOTICE,
|
| 17 |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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- ga
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
library_name: transformers
|
| 7 |
+
pipeline_tag: token-classification
|
| 8 |
+
tags:
|
| 9 |
+
- pii
|
| 10 |
+
- token-classification
|
| 11 |
+
- de-identification
|
| 12 |
+
- ireland
|
| 13 |
+
- irish
|
| 14 |
+
- gaelic
|
| 15 |
+
- ppsn
|
| 16 |
+
- eircode
|
| 17 |
+
- phone-number
|
| 18 |
+
- iban
|
| 19 |
+
- passport
|
| 20 |
+
- onnx
|
| 21 |
+
- quantized
|
| 22 |
+
- release-candidate
|
| 23 |
+
base_model:
|
| 24 |
+
- OpenMed/OpenMed-PII-mLiteClinical-Base-135M-v1
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
# temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3
|
| 28 |
+
|
| 29 |
+
Third QA release candidate for Irish core PII detection with OpenMed mLiteClinical.
|
| 30 |
+
|
| 31 |
+
This repository should be evaluated against:
|
| 32 |
+
|
| 33 |
+
- current public release: `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v1`
|
| 34 |
+
- previous RC: `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2`
|
| 35 |
+
- this repository: `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3`
|
| 36 |
+
|
| 37 |
+
This RC is the first version in the IrishCorePII line that is stronger than `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` across the main suites used in this workspace for release gating:
|
| 38 |
+
|
| 39 |
+
- Irish core multilabel suite
|
| 40 |
+
- Irish PPSN and phone edge suite
|
| 41 |
+
- exact numeric QA suite
|
| 42 |
+
- exact gap-feedback QA suite
|
| 43 |
+
- user PPSN regression suite
|
| 44 |
+
- multilingual PPSN suite
|
| 45 |
+
- strict exact-span boundary suite
|
| 46 |
+
|
| 47 |
+
This repository also includes a stronger bundled ONNX q8 artifact for CPU inference in `onnx/model_quantized.onnx`.
|
| 48 |
+
|
| 49 |
+
## Included Variants
|
| 50 |
+
|
| 51 |
+
| Variant | Artifact | Backend | Recommended Thresholds | Intended Use |
|
| 52 |
+
|---|---|---|---|---|
|
| 53 |
+
| Full checkpoint | repo root | `transformers` | `ppsn=0.55`, `other=0.40` | highest-fidelity evaluation and deployment |
|
| 54 |
+
| Quantized checkpoint | `onnx/model_quantized.onnx` | ONNX Runtime dynamic int8 | `ppsn=0.60`, `other=0.45` | CPU-oriented deployment |
|
| 55 |
+
|
| 56 |
+
## Coverage
|
| 57 |
+
|
| 58 |
+
- `PPSN`
|
| 59 |
+
- `account_number`
|
| 60 |
+
- `bank_routing_number`
|
| 61 |
+
- `credit_debit_card`
|
| 62 |
+
- `PASSPORT_NUMBER`
|
| 63 |
+
- `postcode`
|
| 64 |
+
- `phone_number`
|
| 65 |
+
- `email`
|
| 66 |
+
- `first_name`
|
| 67 |
+
- `last_name`
|
| 68 |
+
- `swift_bic`
|
| 69 |
+
|
| 70 |
+
## Recommended Inference
|
| 71 |
+
|
| 72 |
+
Full checkpoint:
|
| 73 |
+
|
| 74 |
+
```bash
|
| 75 |
+
python3 inference_mask.py --model temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3 --ppsn-min-score 0.55 --other-min-score 0.40 --text "My sort code is 90-00-17 for AIB." --json
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
Fast CPU path with the bundled ONNX q8 artifact:
|
| 79 |
+
|
| 80 |
+
```bash
|
| 81 |
+
python3 inference_mask_onnx.py --model temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3 --ppsn-min-score 0.60 --other-min-score 0.45 --text "Please provide your passport: NN5123456." --json
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
## What Improved Versus `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2`
|
| 85 |
+
|
| 86 |
+
Full checkpoint:
|
| 87 |
+
|
| 88 |
+
- core suite F1: `0.9554` -> `0.9806`
|
| 89 |
+
- edge suite F1: `0.9500` -> `1.0000`
|
| 90 |
+
- exact numeric QA F1: `0.8966` -> `0.9333`
|
| 91 |
+
- exact gap-feedback QA F1: `0.8696` -> `0.9167`
|
| 92 |
+
- user PPSN regression F1: `0.8571` -> `1.0000`
|
| 93 |
+
- multilingual PPSN F1: `0.8038` -> `0.9333`
|
| 94 |
+
|
| 95 |
+
Bundled ONNX q8:
|
| 96 |
+
|
| 97 |
+
- core suite F1: `0.9677` -> `0.9677`
|
| 98 |
+
- edge suite F1: `0.9500` -> `1.0000`
|
| 99 |
+
- exact numeric QA F1: `0.8667` -> `0.9333`
|
| 100 |
+
- exact gap-feedback QA F1: `0.8696` -> `0.9167`
|
| 101 |
+
- user PPSN regression F1: `0.8571` -> `1.0000`
|
| 102 |
+
- multilingual PPSN F1: `0.8077` -> `0.9333`
|
| 103 |
+
|
| 104 |
+
## Quality Snapshot
|
| 105 |
+
|
| 106 |
+
Key label changes on the Irish core suite for the full checkpoint:
|
| 107 |
+
|
| 108 |
+
- `PASSPORT_NUMBER`: `0.8000` -> `1.0000`
|
| 109 |
+
- `POSTCODE`: `0.7500` -> `1.0000`
|
| 110 |
+
- `PPSN`: `0.8571` -> `0.9231`
|
| 111 |
+
- `PHONE_NUMBER` on the numeric QA suite: `0.7500` -> `0.8889`
|
| 112 |
+
|
| 113 |
+
## Benchmark Tables
|
| 114 |
+
|
| 115 |
+
Broader CPU benchmarks:
|
| 116 |
+
|
| 117 |
+
| Variant | User PPSN | Core | Edge | Multilingual PPSN | Strict Remaining IoU=1.0 |
|
| 118 |
+
|---|---:|---:|---:|---:|---:|
|
| 119 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` full | 0.8571 | 0.9554 | 0.9500 | 0.8038 | 0.4000 |
|
| 120 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` full | 1.0000 | 0.9806 | 1.0000 | 0.9333 | 0.4444 |
|
| 121 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` ONNX q8 | 0.8571 | 0.9677 | 0.9500 | 0.8077 | 0.6000 |
|
| 122 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` ONNX q8 | 1.0000 | 0.9677 | 1.0000 | 0.9333 | 0.6667 |
|
| 123 |
+
|
| 124 |
+
Exact QA suites:
|
| 125 |
+
|
| 126 |
+
| Variant | Numeric v2 | Passport | Routing | Phone | Gap | Passport | Routing | Phone |
|
| 127 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 128 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` full | 0.8966 | 0.9091 | 1.0000 | 0.7500 | 0.8696 | 0.8889 | 1.0000 | 0.6667 |
|
| 129 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` full | 0.9333 | 0.9091 | 1.0000 | 0.8889 | 0.9167 | 0.8889 | 1.0000 | 0.8571 |
|
| 130 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` ONNX q8 | 0.8667 | 0.8333 | 1.0000 | 0.7500 | 0.8696 | 0.8889 | 1.0000 | 0.6667 |
|
| 131 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` ONNX q8 | 0.9333 | 0.9091 | 1.0000 | 0.8889 | 0.9167 | 0.8889 | 1.0000 | 0.8571 |
|
| 132 |
+
|
| 133 |
+
CPU throughput:
|
| 134 |
+
|
| 135 |
+
| Variant | Core ex/s | Edge ex/s | Multilingual PPSN ex/s |
|
| 136 |
+
|---|---:|---:|---:|
|
| 137 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` full | 58.3521 | 63.1592 | 128.1891 |
|
| 138 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` full | 64.8768 | 62.4612 | 126.4996 |
|
| 139 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` ONNX q8 | 44.9578 | 45.5786 | 297.5262 |
|
| 140 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` ONNX q8 | 44.9398 | 41.7212 | 190.8299 |
|
| 141 |
+
|
| 142 |
+
## Quantized Artifact
|
| 143 |
+
|
| 144 |
+
The bundled quantized artifact is:
|
| 145 |
+
|
| 146 |
+
- `onnx/model_quantized.onnx`
|
| 147 |
+
|
| 148 |
+
For this release line, the promoted q8 recipe remains the standard dynamic int8 ONNX export with per-channel quantization. Two alternative q8 recipes were tested locally and not promoted because they reduced multilingual PPSN quality.
|
| 149 |
+
|
| 150 |
+
## Known Limits
|
| 151 |
+
|
| 152 |
+
This is still a raw-model-only release candidate. QA should still test these carefully:
|
| 153 |
+
|
| 154 |
+
- `Passport PA 1234567 was used to board the flight.`
|
| 155 |
+
- `Usaideadh pas PA 1234567 chun dul ar bord an eitilt.`
|
| 156 |
+
- the full checkpoint can still trim the final digit in some short English compact-phone contexts such as `Call me on 0851234567 tomorrow.`
|
| 157 |
+
- multilingual PPSN quality is stronger than `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2`, but still below `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v1` on the multilingual PPSN suite
|
| 158 |
+
|
| 159 |
+
## Included Files
|
| 160 |
+
|
| 161 |
+
- full `transformers` checkpoint in the repo root
|
| 162 |
+
- dynamic int8 ONNX artifact in `onnx/model_quantized.onnx`
|
| 163 |
+
- `inference_mask.py`
|
| 164 |
+
- `inference_mask_onnx.py`
|
| 165 |
+
- `qa_config.json`
|
| 166 |
+
- `training_sources.json`
|
| 167 |
+
- benchmark summaries in `eval/`
|
| 168 |
+
|
| 169 |
+
## License And Attribution
|
| 170 |
+
|
| 171 |
+
- release license: Apache-2.0
|
| 172 |
+
- base model: `OpenMed/OpenMed-PII-mLiteClinical-Base-135M-v1`
|
| 173 |
+
- upstream attributed data: `joelniklaus/mapa`, `gretelai/synthetic_pii_finance_multilingual`
|
| 174 |
+
- synthetic Irish training and replay data created in this workspace
|
| 175 |
+
|
| 176 |
+
See `NOTICE` for attribution details.
|
config.json
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation": "gelu",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"DistilBertForTokenClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.1,
|
| 7 |
+
"dim": 768,
|
| 8 |
+
"dropout": 0.1,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"hidden_dim": 3072,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "O",
|
| 13 |
+
"1": "B-account_number",
|
| 14 |
+
"2": "B-age",
|
| 15 |
+
"3": "B-api_key",
|
| 16 |
+
"4": "B-bank_routing_number",
|
| 17 |
+
"5": "B-biometric_identifier",
|
| 18 |
+
"6": "B-blood_type",
|
| 19 |
+
"7": "B-certificate_license_number",
|
| 20 |
+
"8": "B-city",
|
| 21 |
+
"9": "B-company_name",
|
| 22 |
+
"10": "B-coordinate",
|
| 23 |
+
"11": "B-country",
|
| 24 |
+
"12": "B-county",
|
| 25 |
+
"13": "B-credit_debit_card",
|
| 26 |
+
"14": "B-customer_id",
|
| 27 |
+
"15": "B-cvv",
|
| 28 |
+
"16": "B-date",
|
| 29 |
+
"17": "B-date_of_birth",
|
| 30 |
+
"18": "B-date_time",
|
| 31 |
+
"19": "B-device_identifier",
|
| 32 |
+
"20": "B-education_level",
|
| 33 |
+
"21": "B-email",
|
| 34 |
+
"22": "B-employee_id",
|
| 35 |
+
"23": "B-employment_status",
|
| 36 |
+
"24": "B-fax_number",
|
| 37 |
+
"25": "B-first_name",
|
| 38 |
+
"26": "B-gender",
|
| 39 |
+
"27": "B-health_plan_beneficiary_number",
|
| 40 |
+
"28": "B-http_cookie",
|
| 41 |
+
"29": "B-ipv4",
|
| 42 |
+
"30": "B-ipv6",
|
| 43 |
+
"31": "B-language",
|
| 44 |
+
"32": "B-last_name",
|
| 45 |
+
"33": "B-license_plate",
|
| 46 |
+
"34": "B-mac_address",
|
| 47 |
+
"35": "B-medical_record_number",
|
| 48 |
+
"36": "B-occupation",
|
| 49 |
+
"37": "B-password",
|
| 50 |
+
"38": "B-phone_number",
|
| 51 |
+
"39": "B-pin",
|
| 52 |
+
"40": "B-political_view",
|
| 53 |
+
"41": "B-postcode",
|
| 54 |
+
"42": "B-race_ethnicity",
|
| 55 |
+
"43": "B-religious_belief",
|
| 56 |
+
"44": "B-sexuality",
|
| 57 |
+
"45": "B-ssn",
|
| 58 |
+
"46": "B-state",
|
| 59 |
+
"47": "B-street_address",
|
| 60 |
+
"48": "B-swift_bic",
|
| 61 |
+
"49": "B-tax_id",
|
| 62 |
+
"50": "B-time",
|
| 63 |
+
"51": "B-unique_id",
|
| 64 |
+
"52": "B-url",
|
| 65 |
+
"53": "B-user_name",
|
| 66 |
+
"54": "B-vehicle_identifier",
|
| 67 |
+
"55": "I-account_number",
|
| 68 |
+
"56": "I-api_key",
|
| 69 |
+
"57": "I-biometric_identifier",
|
| 70 |
+
"58": "I-blood_type",
|
| 71 |
+
"59": "I-certificate_license_number",
|
| 72 |
+
"60": "I-city",
|
| 73 |
+
"61": "I-company_name",
|
| 74 |
+
"62": "I-coordinate",
|
| 75 |
+
"63": "I-country",
|
| 76 |
+
"64": "I-county",
|
| 77 |
+
"65": "I-credit_debit_card",
|
| 78 |
+
"66": "I-customer_id",
|
| 79 |
+
"67": "I-date",
|
| 80 |
+
"68": "I-date_of_birth",
|
| 81 |
+
"69": "I-date_time",
|
| 82 |
+
"70": "I-device_identifier",
|
| 83 |
+
"71": "I-education_level",
|
| 84 |
+
"72": "I-email",
|
| 85 |
+
"73": "I-employee_id",
|
| 86 |
+
"74": "I-employment_status",
|
| 87 |
+
"75": "I-fax_number",
|
| 88 |
+
"76": "I-first_name",
|
| 89 |
+
"77": "I-gender",
|
| 90 |
+
"78": "I-health_plan_beneficiary_number",
|
| 91 |
+
"79": "I-http_cookie",
|
| 92 |
+
"80": "I-ipv4",
|
| 93 |
+
"81": "I-ipv6",
|
| 94 |
+
"82": "I-language",
|
| 95 |
+
"83": "I-last_name",
|
| 96 |
+
"84": "I-license_plate",
|
| 97 |
+
"85": "I-mac_address",
|
| 98 |
+
"86": "I-medical_record_number",
|
| 99 |
+
"87": "I-occupation",
|
| 100 |
+
"88": "I-password",
|
| 101 |
+
"89": "I-phone_number",
|
| 102 |
+
"90": "I-pin",
|
| 103 |
+
"91": "I-political_view",
|
| 104 |
+
"92": "I-postcode",
|
| 105 |
+
"93": "I-race_ethnicity",
|
| 106 |
+
"94": "I-religious_belief",
|
| 107 |
+
"95": "I-sexuality",
|
| 108 |
+
"96": "I-ssn",
|
| 109 |
+
"97": "I-state",
|
| 110 |
+
"98": "I-street_address",
|
| 111 |
+
"99": "I-swift_bic",
|
| 112 |
+
"100": "I-tax_id",
|
| 113 |
+
"101": "I-time",
|
| 114 |
+
"102": "I-unique_id",
|
| 115 |
+
"103": "I-url",
|
| 116 |
+
"104": "I-user_name",
|
| 117 |
+
"105": "I-vehicle_identifier",
|
| 118 |
+
"106": "B-PPSN",
|
| 119 |
+
"107": "I-PPSN",
|
| 120 |
+
"108": "B-PASSPORT_NUMBER",
|
| 121 |
+
"109": "I-PASSPORT_NUMBER",
|
| 122 |
+
"110": "I-bank_routing_number"
|
| 123 |
+
},
|
| 124 |
+
"initializer_range": 0.02,
|
| 125 |
+
"label2id": {
|
| 126 |
+
"B-PASSPORT_NUMBER": 108,
|
| 127 |
+
"B-PPSN": 106,
|
| 128 |
+
"B-account_number": 1,
|
| 129 |
+
"B-age": 2,
|
| 130 |
+
"B-api_key": 3,
|
| 131 |
+
"B-bank_routing_number": 4,
|
| 132 |
+
"B-biometric_identifier": 5,
|
| 133 |
+
"B-blood_type": 6,
|
| 134 |
+
"B-certificate_license_number": 7,
|
| 135 |
+
"B-city": 8,
|
| 136 |
+
"B-company_name": 9,
|
| 137 |
+
"B-coordinate": 10,
|
| 138 |
+
"B-country": 11,
|
| 139 |
+
"B-county": 12,
|
| 140 |
+
"B-credit_debit_card": 13,
|
| 141 |
+
"B-customer_id": 14,
|
| 142 |
+
"B-cvv": 15,
|
| 143 |
+
"B-date": 16,
|
| 144 |
+
"B-date_of_birth": 17,
|
| 145 |
+
"B-date_time": 18,
|
| 146 |
+
"B-device_identifier": 19,
|
| 147 |
+
"B-education_level": 20,
|
| 148 |
+
"B-email": 21,
|
| 149 |
+
"B-employee_id": 22,
|
| 150 |
+
"B-employment_status": 23,
|
| 151 |
+
"B-fax_number": 24,
|
| 152 |
+
"B-first_name": 25,
|
| 153 |
+
"B-gender": 26,
|
| 154 |
+
"B-health_plan_beneficiary_number": 27,
|
| 155 |
+
"B-http_cookie": 28,
|
| 156 |
+
"B-ipv4": 29,
|
| 157 |
+
"B-ipv6": 30,
|
| 158 |
+
"B-language": 31,
|
| 159 |
+
"B-last_name": 32,
|
| 160 |
+
"B-license_plate": 33,
|
| 161 |
+
"B-mac_address": 34,
|
| 162 |
+
"B-medical_record_number": 35,
|
| 163 |
+
"B-occupation": 36,
|
| 164 |
+
"B-password": 37,
|
| 165 |
+
"B-phone_number": 38,
|
| 166 |
+
"B-pin": 39,
|
| 167 |
+
"B-political_view": 40,
|
| 168 |
+
"B-postcode": 41,
|
| 169 |
+
"B-race_ethnicity": 42,
|
| 170 |
+
"B-religious_belief": 43,
|
| 171 |
+
"B-sexuality": 44,
|
| 172 |
+
"B-ssn": 45,
|
| 173 |
+
"B-state": 46,
|
| 174 |
+
"B-street_address": 47,
|
| 175 |
+
"B-swift_bic": 48,
|
| 176 |
+
"B-tax_id": 49,
|
| 177 |
+
"B-time": 50,
|
| 178 |
+
"B-unique_id": 51,
|
| 179 |
+
"B-url": 52,
|
| 180 |
+
"B-user_name": 53,
|
| 181 |
+
"B-vehicle_identifier": 54,
|
| 182 |
+
"I-PASSPORT_NUMBER": 109,
|
| 183 |
+
"I-PPSN": 107,
|
| 184 |
+
"I-account_number": 55,
|
| 185 |
+
"I-api_key": 56,
|
| 186 |
+
"I-bank_routing_number": 110,
|
| 187 |
+
"I-biometric_identifier": 57,
|
| 188 |
+
"I-blood_type": 58,
|
| 189 |
+
"I-certificate_license_number": 59,
|
| 190 |
+
"I-city": 60,
|
| 191 |
+
"I-company_name": 61,
|
| 192 |
+
"I-coordinate": 62,
|
| 193 |
+
"I-country": 63,
|
| 194 |
+
"I-county": 64,
|
| 195 |
+
"I-credit_debit_card": 65,
|
| 196 |
+
"I-customer_id": 66,
|
| 197 |
+
"I-date": 67,
|
| 198 |
+
"I-date_of_birth": 68,
|
| 199 |
+
"I-date_time": 69,
|
| 200 |
+
"I-device_identifier": 70,
|
| 201 |
+
"I-education_level": 71,
|
| 202 |
+
"I-email": 72,
|
| 203 |
+
"I-employee_id": 73,
|
| 204 |
+
"I-employment_status": 74,
|
| 205 |
+
"I-fax_number": 75,
|
| 206 |
+
"I-first_name": 76,
|
| 207 |
+
"I-gender": 77,
|
| 208 |
+
"I-health_plan_beneficiary_number": 78,
|
| 209 |
+
"I-http_cookie": 79,
|
| 210 |
+
"I-ipv4": 80,
|
| 211 |
+
"I-ipv6": 81,
|
| 212 |
+
"I-language": 82,
|
| 213 |
+
"I-last_name": 83,
|
| 214 |
+
"I-license_plate": 84,
|
| 215 |
+
"I-mac_address": 85,
|
| 216 |
+
"I-medical_record_number": 86,
|
| 217 |
+
"I-occupation": 87,
|
| 218 |
+
"I-password": 88,
|
| 219 |
+
"I-phone_number": 89,
|
| 220 |
+
"I-pin": 90,
|
| 221 |
+
"I-political_view": 91,
|
| 222 |
+
"I-postcode": 92,
|
| 223 |
+
"I-race_ethnicity": 93,
|
| 224 |
+
"I-religious_belief": 94,
|
| 225 |
+
"I-sexuality": 95,
|
| 226 |
+
"I-ssn": 96,
|
| 227 |
+
"I-state": 97,
|
| 228 |
+
"I-street_address": 98,
|
| 229 |
+
"I-swift_bic": 99,
|
| 230 |
+
"I-tax_id": 100,
|
| 231 |
+
"I-time": 101,
|
| 232 |
+
"I-unique_id": 102,
|
| 233 |
+
"I-url": 103,
|
| 234 |
+
"I-user_name": 104,
|
| 235 |
+
"I-vehicle_identifier": 105,
|
| 236 |
+
"O": 0
|
| 237 |
+
},
|
| 238 |
+
"max_position_embeddings": 512,
|
| 239 |
+
"model_type": "distilbert",
|
| 240 |
+
"n_heads": 12,
|
| 241 |
+
"n_layers": 6,
|
| 242 |
+
"output_past": true,
|
| 243 |
+
"pad_token_id": 0,
|
| 244 |
+
"qa_dropout": 0.1,
|
| 245 |
+
"seq_classif_dropout": 0.2,
|
| 246 |
+
"sinusoidal_pos_embds": false,
|
| 247 |
+
"tie_weights_": true,
|
| 248 |
+
"transformers_version": "4.57.6",
|
| 249 |
+
"vocab_size": 119547
|
| 250 |
+
}
|
eval/benchmark_summary.json
ADDED
|
@@ -0,0 +1,2123 @@
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"current_full_core": {
|
| 3 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 4 |
+
"input": "eval/irish_core_pii_v1.jsonl",
|
| 5 |
+
"loader_type": "standard",
|
| 6 |
+
"device": "cpu",
|
| 7 |
+
"examples": 37,
|
| 8 |
+
"batch_size": 8,
|
| 9 |
+
"min_score": 0.35,
|
| 10 |
+
"ppsn_min_score": 0.5,
|
| 11 |
+
"iou_threshold": 0.5,
|
| 12 |
+
"ppsn_decoder": "word_aligned",
|
| 13 |
+
"labels_evaluated": [
|
| 14 |
+
"ACCOUNT_NUMBER",
|
| 15 |
+
"BANK_ROUTING_NUMBER",
|
| 16 |
+
"CREDIT_DEBIT_CARD",
|
| 17 |
+
"EMAIL",
|
| 18 |
+
"FIRST_NAME",
|
| 19 |
+
"LAST_NAME",
|
| 20 |
+
"PASSPORT_NUMBER",
|
| 21 |
+
"PHONE_NUMBER",
|
| 22 |
+
"POSTCODE",
|
| 23 |
+
"PPSN",
|
| 24 |
+
"SWIFT_BIC"
|
| 25 |
+
],
|
| 26 |
+
"elapsed_seconds": 0.6340816880110651,
|
| 27 |
+
"examples_per_second": 58.35210304851814,
|
| 28 |
+
"overall": {
|
| 29 |
+
"precision": 0.9259259259259259,
|
| 30 |
+
"recall": 0.9868421052631579,
|
| 31 |
+
"f1": 0.9554140127388535,
|
| 32 |
+
"tp": 75,
|
| 33 |
+
"fp": 6,
|
| 34 |
+
"fn": 1
|
| 35 |
+
},
|
| 36 |
+
"by_label": {
|
| 37 |
+
"ACCOUNT_NUMBER": {
|
| 38 |
+
"precision": 0.6,
|
| 39 |
+
"recall": 1.0,
|
| 40 |
+
"f1": 0.7499999999999999,
|
| 41 |
+
"tp": 3,
|
| 42 |
+
"fp": 2,
|
| 43 |
+
"fn": 0
|
| 44 |
+
},
|
| 45 |
+
"BANK_ROUTING_NUMBER": {
|
| 46 |
+
"precision": 1.0,
|
| 47 |
+
"recall": 1.0,
|
| 48 |
+
"f1": 1.0,
|
| 49 |
+
"tp": 1,
|
| 50 |
+
"fp": 0,
|
| 51 |
+
"fn": 0
|
| 52 |
+
},
|
| 53 |
+
"CREDIT_DEBIT_CARD": {
|
| 54 |
+
"precision": 1.0,
|
| 55 |
+
"recall": 1.0,
|
| 56 |
+
"f1": 1.0,
|
| 57 |
+
"tp": 2,
|
| 58 |
+
"fp": 0,
|
| 59 |
+
"fn": 0
|
| 60 |
+
},
|
| 61 |
+
"EMAIL": {
|
| 62 |
+
"precision": 1.0,
|
| 63 |
+
"recall": 1.0,
|
| 64 |
+
"f1": 1.0,
|
| 65 |
+
"tp": 6,
|
| 66 |
+
"fp": 0,
|
| 67 |
+
"fn": 0
|
| 68 |
+
},
|
| 69 |
+
"FIRST_NAME": {
|
| 70 |
+
"precision": 1.0,
|
| 71 |
+
"recall": 1.0,
|
| 72 |
+
"f1": 1.0,
|
| 73 |
+
"tp": 19,
|
| 74 |
+
"fp": 0,
|
| 75 |
+
"fn": 0
|
| 76 |
+
},
|
| 77 |
+
"LAST_NAME": {
|
| 78 |
+
"precision": 1.0,
|
| 79 |
+
"recall": 1.0,
|
| 80 |
+
"f1": 1.0,
|
| 81 |
+
"tp": 19,
|
| 82 |
+
"fp": 0,
|
| 83 |
+
"fn": 0
|
| 84 |
+
},
|
| 85 |
+
"PASSPORT_NUMBER": {
|
| 86 |
+
"precision": 0.6666666666666666,
|
| 87 |
+
"recall": 1.0,
|
| 88 |
+
"f1": 0.8,
|
| 89 |
+
"tp": 2,
|
| 90 |
+
"fp": 1,
|
| 91 |
+
"fn": 0
|
| 92 |
+
},
|
| 93 |
+
"PHONE_NUMBER": {
|
| 94 |
+
"precision": 1.0,
|
| 95 |
+
"recall": 1.0,
|
| 96 |
+
"f1": 1.0,
|
| 97 |
+
"tp": 12,
|
| 98 |
+
"fp": 0,
|
| 99 |
+
"fn": 0
|
| 100 |
+
},
|
| 101 |
+
"POSTCODE": {
|
| 102 |
+
"precision": 0.75,
|
| 103 |
+
"recall": 0.75,
|
| 104 |
+
"f1": 0.75,
|
| 105 |
+
"tp": 3,
|
| 106 |
+
"fp": 1,
|
| 107 |
+
"fn": 1
|
| 108 |
+
},
|
| 109 |
+
"PPSN": {
|
| 110 |
+
"precision": 0.75,
|
| 111 |
+
"recall": 1.0,
|
| 112 |
+
"f1": 0.8571428571428571,
|
| 113 |
+
"tp": 6,
|
| 114 |
+
"fp": 2,
|
| 115 |
+
"fn": 0
|
| 116 |
+
},
|
| 117 |
+
"SWIFT_BIC": {
|
| 118 |
+
"precision": 1.0,
|
| 119 |
+
"recall": 1.0,
|
| 120 |
+
"f1": 1.0,
|
| 121 |
+
"tp": 2,
|
| 122 |
+
"fp": 0,
|
| 123 |
+
"fn": 0
|
| 124 |
+
}
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"current_full_edge": {
|
| 128 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 129 |
+
"input": "eval/irish_ppsn_phone_edge_v1.jsonl",
|
| 130 |
+
"loader_type": "standard",
|
| 131 |
+
"device": "cpu",
|
| 132 |
+
"examples": 22,
|
| 133 |
+
"batch_size": 8,
|
| 134 |
+
"min_score": 0.35,
|
| 135 |
+
"ppsn_min_score": 0.5,
|
| 136 |
+
"iou_threshold": 0.5,
|
| 137 |
+
"ppsn_decoder": "word_aligned",
|
| 138 |
+
"labels_evaluated": [
|
| 139 |
+
"PHONE_NUMBER",
|
| 140 |
+
"PPSN"
|
| 141 |
+
],
|
| 142 |
+
"elapsed_seconds": 0.34832625201670453,
|
| 143 |
+
"examples_per_second": 63.15917870854292,
|
| 144 |
+
"overall": {
|
| 145 |
+
"precision": 0.9047619047619048,
|
| 146 |
+
"recall": 1.0,
|
| 147 |
+
"f1": 0.9500000000000001,
|
| 148 |
+
"tp": 19,
|
| 149 |
+
"fp": 2,
|
| 150 |
+
"fn": 0
|
| 151 |
+
},
|
| 152 |
+
"by_label": {
|
| 153 |
+
"PHONE_NUMBER": {
|
| 154 |
+
"precision": 1.0,
|
| 155 |
+
"recall": 1.0,
|
| 156 |
+
"f1": 1.0,
|
| 157 |
+
"tp": 13,
|
| 158 |
+
"fp": 0,
|
| 159 |
+
"fn": 0
|
| 160 |
+
},
|
| 161 |
+
"PPSN": {
|
| 162 |
+
"precision": 0.75,
|
| 163 |
+
"recall": 1.0,
|
| 164 |
+
"f1": 0.8571428571428571,
|
| 165 |
+
"tp": 6,
|
| 166 |
+
"fp": 2,
|
| 167 |
+
"fn": 0
|
| 168 |
+
}
|
| 169 |
+
}
|
| 170 |
+
},
|
| 171 |
+
"current_full_numeric": {
|
| 172 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 173 |
+
"input": "eval/irish_numeric_qafix_v2.jsonl",
|
| 174 |
+
"loader_type": "standard",
|
| 175 |
+
"device": "cpu",
|
| 176 |
+
"examples": 19,
|
| 177 |
+
"batch_size": 8,
|
| 178 |
+
"min_score": 0.35,
|
| 179 |
+
"ppsn_min_score": 0.5,
|
| 180 |
+
"iou_threshold": 0.5,
|
| 181 |
+
"ppsn_decoder": "word_aligned",
|
| 182 |
+
"labels_evaluated": [
|
| 183 |
+
"BANK_ROUTING_NUMBER",
|
| 184 |
+
"PASSPORT_NUMBER",
|
| 185 |
+
"PHONE_NUMBER"
|
| 186 |
+
],
|
| 187 |
+
"elapsed_seconds": 0.29271358298137784,
|
| 188 |
+
"examples_per_second": 64.90986788682356,
|
| 189 |
+
"overall": {
|
| 190 |
+
"precision": 0.8666666666666667,
|
| 191 |
+
"recall": 0.9285714285714286,
|
| 192 |
+
"f1": 0.896551724137931,
|
| 193 |
+
"tp": 13,
|
| 194 |
+
"fp": 2,
|
| 195 |
+
"fn": 1
|
| 196 |
+
},
|
| 197 |
+
"by_label": {
|
| 198 |
+
"BANK_ROUTING_NUMBER": {
|
| 199 |
+
"precision": 1.0,
|
| 200 |
+
"recall": 1.0,
|
| 201 |
+
"f1": 1.0,
|
| 202 |
+
"tp": 5,
|
| 203 |
+
"fp": 0,
|
| 204 |
+
"fn": 0
|
| 205 |
+
},
|
| 206 |
+
"PASSPORT_NUMBER": {
|
| 207 |
+
"precision": 0.8333333333333334,
|
| 208 |
+
"recall": 1.0,
|
| 209 |
+
"f1": 0.9090909090909091,
|
| 210 |
+
"tp": 5,
|
| 211 |
+
"fp": 1,
|
| 212 |
+
"fn": 0
|
| 213 |
+
},
|
| 214 |
+
"PHONE_NUMBER": {
|
| 215 |
+
"precision": 0.75,
|
| 216 |
+
"recall": 0.75,
|
| 217 |
+
"f1": 0.75,
|
| 218 |
+
"tp": 3,
|
| 219 |
+
"fp": 1,
|
| 220 |
+
"fn": 1
|
| 221 |
+
}
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
"current_full_gap": {
|
| 225 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 226 |
+
"input": "eval/irish_core_gap_feedback_v1.jsonl",
|
| 227 |
+
"loader_type": "standard",
|
| 228 |
+
"device": "cpu",
|
| 229 |
+
"examples": 14,
|
| 230 |
+
"batch_size": 8,
|
| 231 |
+
"min_score": 0.35,
|
| 232 |
+
"ppsn_min_score": 0.5,
|
| 233 |
+
"iou_threshold": 0.5,
|
| 234 |
+
"ppsn_decoder": "word_aligned",
|
| 235 |
+
"labels_evaluated": [
|
| 236 |
+
"BANK_ROUTING_NUMBER",
|
| 237 |
+
"PASSPORT_NUMBER",
|
| 238 |
+
"PHONE_NUMBER"
|
| 239 |
+
],
|
| 240 |
+
"elapsed_seconds": 0.2173796920105815,
|
| 241 |
+
"examples_per_second": 64.40344022255086,
|
| 242 |
+
"overall": {
|
| 243 |
+
"precision": 0.8333333333333334,
|
| 244 |
+
"recall": 0.9090909090909091,
|
| 245 |
+
"f1": 0.8695652173913043,
|
| 246 |
+
"tp": 10,
|
| 247 |
+
"fp": 2,
|
| 248 |
+
"fn": 1
|
| 249 |
+
},
|
| 250 |
+
"by_label": {
|
| 251 |
+
"BANK_ROUTING_NUMBER": {
|
| 252 |
+
"precision": 1.0,
|
| 253 |
+
"recall": 1.0,
|
| 254 |
+
"f1": 1.0,
|
| 255 |
+
"tp": 4,
|
| 256 |
+
"fp": 0,
|
| 257 |
+
"fn": 0
|
| 258 |
+
},
|
| 259 |
+
"PASSPORT_NUMBER": {
|
| 260 |
+
"precision": 0.8,
|
| 261 |
+
"recall": 1.0,
|
| 262 |
+
"f1": 0.888888888888889,
|
| 263 |
+
"tp": 4,
|
| 264 |
+
"fp": 1,
|
| 265 |
+
"fn": 0
|
| 266 |
+
},
|
| 267 |
+
"PHONE_NUMBER": {
|
| 268 |
+
"precision": 0.6666666666666666,
|
| 269 |
+
"recall": 0.6666666666666666,
|
| 270 |
+
"f1": 0.6666666666666666,
|
| 271 |
+
"tp": 2,
|
| 272 |
+
"fp": 1,
|
| 273 |
+
"fn": 1
|
| 274 |
+
}
|
| 275 |
+
}
|
| 276 |
+
},
|
| 277 |
+
"current_full_user": {
|
| 278 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 279 |
+
"input": "eval/user_raw_regression_cases_v1.jsonl",
|
| 280 |
+
"loader_type": "standard",
|
| 281 |
+
"device": "cpu",
|
| 282 |
+
"examples": 7,
|
| 283 |
+
"batch_size": 8,
|
| 284 |
+
"min_score": 0.35,
|
| 285 |
+
"ppsn_min_score": 0.5,
|
| 286 |
+
"iou_threshold": 0.5,
|
| 287 |
+
"ppsn_decoder": "word_aligned",
|
| 288 |
+
"labels_evaluated": [
|
| 289 |
+
"PPSN"
|
| 290 |
+
],
|
| 291 |
+
"elapsed_seconds": 0.11388953996356577,
|
| 292 |
+
"examples_per_second": 61.46306326497903,
|
| 293 |
+
"overall": {
|
| 294 |
+
"precision": 0.75,
|
| 295 |
+
"recall": 1.0,
|
| 296 |
+
"f1": 0.8571428571428571,
|
| 297 |
+
"tp": 3,
|
| 298 |
+
"fp": 1,
|
| 299 |
+
"fn": 0
|
| 300 |
+
},
|
| 301 |
+
"by_label": {
|
| 302 |
+
"PHONE_NUMBER": {
|
| 303 |
+
"precision": 0.0,
|
| 304 |
+
"recall": 0.0,
|
| 305 |
+
"f1": 0.0,
|
| 306 |
+
"tp": 0,
|
| 307 |
+
"fp": 1,
|
| 308 |
+
"fn": 0
|
| 309 |
+
},
|
| 310 |
+
"PPSN": {
|
| 311 |
+
"precision": 1.0,
|
| 312 |
+
"recall": 1.0,
|
| 313 |
+
"f1": 1.0,
|
| 314 |
+
"tp": 3,
|
| 315 |
+
"fp": 0,
|
| 316 |
+
"fn": 0
|
| 317 |
+
}
|
| 318 |
+
}
|
| 319 |
+
},
|
| 320 |
+
"current_full_remaining": {
|
| 321 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 322 |
+
"input": "eval/irish_remaining_gaps_v2.jsonl",
|
| 323 |
+
"loader_type": "standard",
|
| 324 |
+
"device": "cpu",
|
| 325 |
+
"examples": 6,
|
| 326 |
+
"batch_size": 8,
|
| 327 |
+
"min_score": 0.35,
|
| 328 |
+
"ppsn_min_score": 0.5,
|
| 329 |
+
"iou_threshold": 1.0,
|
| 330 |
+
"ppsn_decoder": "word_aligned",
|
| 331 |
+
"labels_evaluated": [
|
| 332 |
+
"PASSPORT_NUMBER",
|
| 333 |
+
"PHONE_NUMBER"
|
| 334 |
+
],
|
| 335 |
+
"elapsed_seconds": 0.10174437699606642,
|
| 336 |
+
"examples_per_second": 58.97131789633906,
|
| 337 |
+
"overall": {
|
| 338 |
+
"precision": 0.4,
|
| 339 |
+
"recall": 0.4,
|
| 340 |
+
"f1": 0.4000000000000001,
|
| 341 |
+
"tp": 2,
|
| 342 |
+
"fp": 3,
|
| 343 |
+
"fn": 3
|
| 344 |
+
},
|
| 345 |
+
"by_label": {
|
| 346 |
+
"PASSPORT_NUMBER": {
|
| 347 |
+
"precision": 0.0,
|
| 348 |
+
"recall": 0.0,
|
| 349 |
+
"f1": 0.0,
|
| 350 |
+
"tp": 0,
|
| 351 |
+
"fp": 2,
|
| 352 |
+
"fn": 2
|
| 353 |
+
},
|
| 354 |
+
"PHONE_NUMBER": {
|
| 355 |
+
"precision": 0.6666666666666666,
|
| 356 |
+
"recall": 0.6666666666666666,
|
| 357 |
+
"f1": 0.6666666666666666,
|
| 358 |
+
"tp": 2,
|
| 359 |
+
"fp": 1,
|
| 360 |
+
"fn": 1
|
| 361 |
+
}
|
| 362 |
+
}
|
| 363 |
+
},
|
| 364 |
+
"current_full_multilingual": {
|
| 365 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 366 |
+
"input": "eval/multilingual_ppsn_v1_all.jsonl",
|
| 367 |
+
"loader_type": "standard",
|
| 368 |
+
"device": "cpu",
|
| 369 |
+
"examples": 168,
|
| 370 |
+
"batch_size": 16,
|
| 371 |
+
"ppsn_decoder": "word_aligned",
|
| 372 |
+
"elapsed_seconds": 1.310564298008103,
|
| 373 |
+
"examples_per_second": 128.18905585581678,
|
| 374 |
+
"label_filter": "PPSN",
|
| 375 |
+
"overall": {
|
| 376 |
+
"precision": 0.672,
|
| 377 |
+
"recall": 1.0,
|
| 378 |
+
"f1": 0.8038277511961722,
|
| 379 |
+
"tp": 84,
|
| 380 |
+
"fp": 41,
|
| 381 |
+
"fn": 0
|
| 382 |
+
},
|
| 383 |
+
"by_domain": {
|
| 384 |
+
"citizen_chat": {
|
| 385 |
+
"precision": 0.6511627906976745,
|
| 386 |
+
"recall": 1.0,
|
| 387 |
+
"f1": 0.7887323943661972,
|
| 388 |
+
"tp": 28,
|
| 389 |
+
"fp": 15,
|
| 390 |
+
"fn": 0
|
| 391 |
+
},
|
| 392 |
+
"gov_data": {
|
| 393 |
+
"precision": 0.7,
|
| 394 |
+
"recall": 1.0,
|
| 395 |
+
"f1": 0.8235294117647058,
|
| 396 |
+
"tp": 28,
|
| 397 |
+
"fp": 12,
|
| 398 |
+
"fn": 0
|
| 399 |
+
},
|
| 400 |
+
"hse_medical": {
|
| 401 |
+
"precision": 0.6666666666666666,
|
| 402 |
+
"recall": 1.0,
|
| 403 |
+
"f1": 0.8,
|
| 404 |
+
"tp": 28,
|
| 405 |
+
"fp": 14,
|
| 406 |
+
"fn": 0
|
| 407 |
+
}
|
| 408 |
+
},
|
| 409 |
+
"by_language": {
|
| 410 |
+
"de": {
|
| 411 |
+
"precision": 0.6666666666666666,
|
| 412 |
+
"recall": 1.0,
|
| 413 |
+
"f1": 0.8,
|
| 414 |
+
"tp": 6,
|
| 415 |
+
"fp": 3,
|
| 416 |
+
"fn": 0
|
| 417 |
+
},
|
| 418 |
+
"en": {
|
| 419 |
+
"precision": 0.75,
|
| 420 |
+
"recall": 1.0,
|
| 421 |
+
"f1": 0.8571428571428571,
|
| 422 |
+
"tp": 6,
|
| 423 |
+
"fp": 2,
|
| 424 |
+
"fn": 0
|
| 425 |
+
},
|
| 426 |
+
"es": {
|
| 427 |
+
"precision": 0.75,
|
| 428 |
+
"recall": 1.0,
|
| 429 |
+
"f1": 0.8571428571428571,
|
| 430 |
+
"tp": 6,
|
| 431 |
+
"fp": 2,
|
| 432 |
+
"fn": 0
|
| 433 |
+
},
|
| 434 |
+
"fr": {
|
| 435 |
+
"precision": 0.8571428571428571,
|
| 436 |
+
"recall": 1.0,
|
| 437 |
+
"f1": 0.923076923076923,
|
| 438 |
+
"tp": 6,
|
| 439 |
+
"fp": 1,
|
| 440 |
+
"fn": 0
|
| 441 |
+
},
|
| 442 |
+
"ga": {
|
| 443 |
+
"precision": 0.5,
|
| 444 |
+
"recall": 1.0,
|
| 445 |
+
"f1": 0.6666666666666666,
|
| 446 |
+
"tp": 6,
|
| 447 |
+
"fp": 6,
|
| 448 |
+
"fn": 0
|
| 449 |
+
},
|
| 450 |
+
"it": {
|
| 451 |
+
"precision": 0.6,
|
| 452 |
+
"recall": 1.0,
|
| 453 |
+
"f1": 0.7499999999999999,
|
| 454 |
+
"tp": 6,
|
| 455 |
+
"fp": 4,
|
| 456 |
+
"fn": 0
|
| 457 |
+
},
|
| 458 |
+
"ja": {
|
| 459 |
+
"precision": 0.6666666666666666,
|
| 460 |
+
"recall": 1.0,
|
| 461 |
+
"f1": 0.8,
|
| 462 |
+
"tp": 6,
|
| 463 |
+
"fp": 3,
|
| 464 |
+
"fn": 0
|
| 465 |
+
},
|
| 466 |
+
"nl": {
|
| 467 |
+
"precision": 0.6666666666666666,
|
| 468 |
+
"recall": 1.0,
|
| 469 |
+
"f1": 0.8,
|
| 470 |
+
"tp": 6,
|
| 471 |
+
"fp": 3,
|
| 472 |
+
"fn": 0
|
| 473 |
+
},
|
| 474 |
+
"pl": {
|
| 475 |
+
"precision": 0.75,
|
| 476 |
+
"recall": 1.0,
|
| 477 |
+
"f1": 0.8571428571428571,
|
| 478 |
+
"tp": 6,
|
| 479 |
+
"fp": 2,
|
| 480 |
+
"fn": 0
|
| 481 |
+
},
|
| 482 |
+
"pt": {
|
| 483 |
+
"precision": 0.75,
|
| 484 |
+
"recall": 1.0,
|
| 485 |
+
"f1": 0.8571428571428571,
|
| 486 |
+
"tp": 6,
|
| 487 |
+
"fp": 2,
|
| 488 |
+
"fn": 0
|
| 489 |
+
},
|
| 490 |
+
"ro": {
|
| 491 |
+
"precision": 0.6,
|
| 492 |
+
"recall": 1.0,
|
| 493 |
+
"f1": 0.7499999999999999,
|
| 494 |
+
"tp": 6,
|
| 495 |
+
"fp": 4,
|
| 496 |
+
"fn": 0
|
| 497 |
+
},
|
| 498 |
+
"ru": {
|
| 499 |
+
"precision": 0.6666666666666666,
|
| 500 |
+
"recall": 1.0,
|
| 501 |
+
"f1": 0.8,
|
| 502 |
+
"tp": 6,
|
| 503 |
+
"fp": 3,
|
| 504 |
+
"fn": 0
|
| 505 |
+
},
|
| 506 |
+
"uk": {
|
| 507 |
+
"precision": 0.6666666666666666,
|
| 508 |
+
"recall": 1.0,
|
| 509 |
+
"f1": 0.8,
|
| 510 |
+
"tp": 6,
|
| 511 |
+
"fp": 3,
|
| 512 |
+
"fn": 0
|
| 513 |
+
},
|
| 514 |
+
"zh": {
|
| 515 |
+
"precision": 0.6666666666666666,
|
| 516 |
+
"recall": 1.0,
|
| 517 |
+
"f1": 0.8,
|
| 518 |
+
"tp": 6,
|
| 519 |
+
"fp": 3,
|
| 520 |
+
"fn": 0
|
| 521 |
+
}
|
| 522 |
+
}
|
| 523 |
+
},
|
| 524 |
+
"candidate_full_core": {
|
| 525 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 526 |
+
"input": "eval/irish_core_pii_v1.jsonl",
|
| 527 |
+
"loader_type": "standard",
|
| 528 |
+
"device": "cpu",
|
| 529 |
+
"examples": 37,
|
| 530 |
+
"batch_size": 8,
|
| 531 |
+
"min_score": 0.4,
|
| 532 |
+
"ppsn_min_score": 0.55,
|
| 533 |
+
"iou_threshold": 0.5,
|
| 534 |
+
"ppsn_decoder": "word_aligned",
|
| 535 |
+
"labels_evaluated": [
|
| 536 |
+
"ACCOUNT_NUMBER",
|
| 537 |
+
"BANK_ROUTING_NUMBER",
|
| 538 |
+
"CREDIT_DEBIT_CARD",
|
| 539 |
+
"EMAIL",
|
| 540 |
+
"FIRST_NAME",
|
| 541 |
+
"LAST_NAME",
|
| 542 |
+
"PASSPORT_NUMBER",
|
| 543 |
+
"PHONE_NUMBER",
|
| 544 |
+
"POSTCODE",
|
| 545 |
+
"PPSN",
|
| 546 |
+
"SWIFT_BIC"
|
| 547 |
+
],
|
| 548 |
+
"elapsed_seconds": 0.5703115339856595,
|
| 549 |
+
"examples_per_second": 64.87682221929316,
|
| 550 |
+
"overall": {
|
| 551 |
+
"precision": 0.9620253164556962,
|
| 552 |
+
"recall": 1.0,
|
| 553 |
+
"f1": 0.9806451612903226,
|
| 554 |
+
"tp": 76,
|
| 555 |
+
"fp": 3,
|
| 556 |
+
"fn": 0
|
| 557 |
+
},
|
| 558 |
+
"by_label": {
|
| 559 |
+
"ACCOUNT_NUMBER": {
|
| 560 |
+
"precision": 0.6,
|
| 561 |
+
"recall": 1.0,
|
| 562 |
+
"f1": 0.7499999999999999,
|
| 563 |
+
"tp": 3,
|
| 564 |
+
"fp": 2,
|
| 565 |
+
"fn": 0
|
| 566 |
+
},
|
| 567 |
+
"BANK_ROUTING_NUMBER": {
|
| 568 |
+
"precision": 1.0,
|
| 569 |
+
"recall": 1.0,
|
| 570 |
+
"f1": 1.0,
|
| 571 |
+
"tp": 1,
|
| 572 |
+
"fp": 0,
|
| 573 |
+
"fn": 0
|
| 574 |
+
},
|
| 575 |
+
"CREDIT_DEBIT_CARD": {
|
| 576 |
+
"precision": 1.0,
|
| 577 |
+
"recall": 1.0,
|
| 578 |
+
"f1": 1.0,
|
| 579 |
+
"tp": 2,
|
| 580 |
+
"fp": 0,
|
| 581 |
+
"fn": 0
|
| 582 |
+
},
|
| 583 |
+
"EMAIL": {
|
| 584 |
+
"precision": 1.0,
|
| 585 |
+
"recall": 1.0,
|
| 586 |
+
"f1": 1.0,
|
| 587 |
+
"tp": 6,
|
| 588 |
+
"fp": 0,
|
| 589 |
+
"fn": 0
|
| 590 |
+
},
|
| 591 |
+
"FIRST_NAME": {
|
| 592 |
+
"precision": 1.0,
|
| 593 |
+
"recall": 1.0,
|
| 594 |
+
"f1": 1.0,
|
| 595 |
+
"tp": 19,
|
| 596 |
+
"fp": 0,
|
| 597 |
+
"fn": 0
|
| 598 |
+
},
|
| 599 |
+
"LAST_NAME": {
|
| 600 |
+
"precision": 1.0,
|
| 601 |
+
"recall": 1.0,
|
| 602 |
+
"f1": 1.0,
|
| 603 |
+
"tp": 19,
|
| 604 |
+
"fp": 0,
|
| 605 |
+
"fn": 0
|
| 606 |
+
},
|
| 607 |
+
"PASSPORT_NUMBER": {
|
| 608 |
+
"precision": 1.0,
|
| 609 |
+
"recall": 1.0,
|
| 610 |
+
"f1": 1.0,
|
| 611 |
+
"tp": 2,
|
| 612 |
+
"fp": 0,
|
| 613 |
+
"fn": 0
|
| 614 |
+
},
|
| 615 |
+
"PHONE_NUMBER": {
|
| 616 |
+
"precision": 1.0,
|
| 617 |
+
"recall": 1.0,
|
| 618 |
+
"f1": 1.0,
|
| 619 |
+
"tp": 12,
|
| 620 |
+
"fp": 0,
|
| 621 |
+
"fn": 0
|
| 622 |
+
},
|
| 623 |
+
"POSTCODE": {
|
| 624 |
+
"precision": 1.0,
|
| 625 |
+
"recall": 1.0,
|
| 626 |
+
"f1": 1.0,
|
| 627 |
+
"tp": 4,
|
| 628 |
+
"fp": 0,
|
| 629 |
+
"fn": 0
|
| 630 |
+
},
|
| 631 |
+
"PPSN": {
|
| 632 |
+
"precision": 0.8571428571428571,
|
| 633 |
+
"recall": 1.0,
|
| 634 |
+
"f1": 0.923076923076923,
|
| 635 |
+
"tp": 6,
|
| 636 |
+
"fp": 1,
|
| 637 |
+
"fn": 0
|
| 638 |
+
},
|
| 639 |
+
"SWIFT_BIC": {
|
| 640 |
+
"precision": 1.0,
|
| 641 |
+
"recall": 1.0,
|
| 642 |
+
"f1": 1.0,
|
| 643 |
+
"tp": 2,
|
| 644 |
+
"fp": 0,
|
| 645 |
+
"fn": 0
|
| 646 |
+
}
|
| 647 |
+
}
|
| 648 |
+
},
|
| 649 |
+
"candidate_full_edge": {
|
| 650 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 651 |
+
"input": "eval/irish_ppsn_phone_edge_v1.jsonl",
|
| 652 |
+
"loader_type": "standard",
|
| 653 |
+
"device": "cpu",
|
| 654 |
+
"examples": 22,
|
| 655 |
+
"batch_size": 8,
|
| 656 |
+
"min_score": 0.4,
|
| 657 |
+
"ppsn_min_score": 0.55,
|
| 658 |
+
"iou_threshold": 0.5,
|
| 659 |
+
"ppsn_decoder": "word_aligned",
|
| 660 |
+
"labels_evaluated": [
|
| 661 |
+
"PHONE_NUMBER",
|
| 662 |
+
"PPSN"
|
| 663 |
+
],
|
| 664 |
+
"elapsed_seconds": 0.35221877897856757,
|
| 665 |
+
"examples_per_second": 62.46117842949735,
|
| 666 |
+
"overall": {
|
| 667 |
+
"precision": 1.0,
|
| 668 |
+
"recall": 1.0,
|
| 669 |
+
"f1": 1.0,
|
| 670 |
+
"tp": 19,
|
| 671 |
+
"fp": 0,
|
| 672 |
+
"fn": 0
|
| 673 |
+
},
|
| 674 |
+
"by_label": {
|
| 675 |
+
"PHONE_NUMBER": {
|
| 676 |
+
"precision": 1.0,
|
| 677 |
+
"recall": 1.0,
|
| 678 |
+
"f1": 1.0,
|
| 679 |
+
"tp": 13,
|
| 680 |
+
"fp": 0,
|
| 681 |
+
"fn": 0
|
| 682 |
+
},
|
| 683 |
+
"PPSN": {
|
| 684 |
+
"precision": 1.0,
|
| 685 |
+
"recall": 1.0,
|
| 686 |
+
"f1": 1.0,
|
| 687 |
+
"tp": 6,
|
| 688 |
+
"fp": 0,
|
| 689 |
+
"fn": 0
|
| 690 |
+
}
|
| 691 |
+
}
|
| 692 |
+
},
|
| 693 |
+
"candidate_full_numeric": {
|
| 694 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 695 |
+
"input": "eval/irish_numeric_qafix_v2.jsonl",
|
| 696 |
+
"loader_type": "standard",
|
| 697 |
+
"device": "cpu",
|
| 698 |
+
"examples": 19,
|
| 699 |
+
"batch_size": 8,
|
| 700 |
+
"min_score": 0.4,
|
| 701 |
+
"ppsn_min_score": 0.55,
|
| 702 |
+
"iou_threshold": 0.5,
|
| 703 |
+
"ppsn_decoder": "word_aligned",
|
| 704 |
+
"labels_evaluated": [
|
| 705 |
+
"BANK_ROUTING_NUMBER",
|
| 706 |
+
"PASSPORT_NUMBER",
|
| 707 |
+
"PHONE_NUMBER"
|
| 708 |
+
],
|
| 709 |
+
"elapsed_seconds": 0.2983117959811352,
|
| 710 |
+
"examples_per_second": 63.69174888813827,
|
| 711 |
+
"overall": {
|
| 712 |
+
"precision": 0.875,
|
| 713 |
+
"recall": 1.0,
|
| 714 |
+
"f1": 0.9333333333333333,
|
| 715 |
+
"tp": 14,
|
| 716 |
+
"fp": 2,
|
| 717 |
+
"fn": 0
|
| 718 |
+
},
|
| 719 |
+
"by_label": {
|
| 720 |
+
"BANK_ROUTING_NUMBER": {
|
| 721 |
+
"precision": 1.0,
|
| 722 |
+
"recall": 1.0,
|
| 723 |
+
"f1": 1.0,
|
| 724 |
+
"tp": 5,
|
| 725 |
+
"fp": 0,
|
| 726 |
+
"fn": 0
|
| 727 |
+
},
|
| 728 |
+
"PASSPORT_NUMBER": {
|
| 729 |
+
"precision": 0.8333333333333334,
|
| 730 |
+
"recall": 1.0,
|
| 731 |
+
"f1": 0.9090909090909091,
|
| 732 |
+
"tp": 5,
|
| 733 |
+
"fp": 1,
|
| 734 |
+
"fn": 0
|
| 735 |
+
},
|
| 736 |
+
"PHONE_NUMBER": {
|
| 737 |
+
"precision": 0.8,
|
| 738 |
+
"recall": 1.0,
|
| 739 |
+
"f1": 0.888888888888889,
|
| 740 |
+
"tp": 4,
|
| 741 |
+
"fp": 1,
|
| 742 |
+
"fn": 0
|
| 743 |
+
}
|
| 744 |
+
}
|
| 745 |
+
},
|
| 746 |
+
"candidate_full_gap": {
|
| 747 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 748 |
+
"input": "eval/irish_core_gap_feedback_v1.jsonl",
|
| 749 |
+
"loader_type": "standard",
|
| 750 |
+
"device": "cpu",
|
| 751 |
+
"examples": 14,
|
| 752 |
+
"batch_size": 8,
|
| 753 |
+
"min_score": 0.4,
|
| 754 |
+
"ppsn_min_score": 0.55,
|
| 755 |
+
"iou_threshold": 0.5,
|
| 756 |
+
"ppsn_decoder": "word_aligned",
|
| 757 |
+
"labels_evaluated": [
|
| 758 |
+
"BANK_ROUTING_NUMBER",
|
| 759 |
+
"PASSPORT_NUMBER",
|
| 760 |
+
"PHONE_NUMBER"
|
| 761 |
+
],
|
| 762 |
+
"elapsed_seconds": 0.229215633997228,
|
| 763 |
+
"examples_per_second": 61.07785824142043,
|
| 764 |
+
"overall": {
|
| 765 |
+
"precision": 0.8461538461538461,
|
| 766 |
+
"recall": 1.0,
|
| 767 |
+
"f1": 0.9166666666666666,
|
| 768 |
+
"tp": 11,
|
| 769 |
+
"fp": 2,
|
| 770 |
+
"fn": 0
|
| 771 |
+
},
|
| 772 |
+
"by_label": {
|
| 773 |
+
"BANK_ROUTING_NUMBER": {
|
| 774 |
+
"precision": 1.0,
|
| 775 |
+
"recall": 1.0,
|
| 776 |
+
"f1": 1.0,
|
| 777 |
+
"tp": 4,
|
| 778 |
+
"fp": 0,
|
| 779 |
+
"fn": 0
|
| 780 |
+
},
|
| 781 |
+
"PASSPORT_NUMBER": {
|
| 782 |
+
"precision": 0.8,
|
| 783 |
+
"recall": 1.0,
|
| 784 |
+
"f1": 0.888888888888889,
|
| 785 |
+
"tp": 4,
|
| 786 |
+
"fp": 1,
|
| 787 |
+
"fn": 0
|
| 788 |
+
},
|
| 789 |
+
"PHONE_NUMBER": {
|
| 790 |
+
"precision": 0.75,
|
| 791 |
+
"recall": 1.0,
|
| 792 |
+
"f1": 0.8571428571428571,
|
| 793 |
+
"tp": 3,
|
| 794 |
+
"fp": 1,
|
| 795 |
+
"fn": 0
|
| 796 |
+
}
|
| 797 |
+
}
|
| 798 |
+
},
|
| 799 |
+
"candidate_full_user": {
|
| 800 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 801 |
+
"input": "eval/user_raw_regression_cases_v1.jsonl",
|
| 802 |
+
"loader_type": "standard",
|
| 803 |
+
"device": "cpu",
|
| 804 |
+
"examples": 7,
|
| 805 |
+
"batch_size": 8,
|
| 806 |
+
"min_score": 0.4,
|
| 807 |
+
"ppsn_min_score": 0.55,
|
| 808 |
+
"iou_threshold": 0.5,
|
| 809 |
+
"ppsn_decoder": "word_aligned",
|
| 810 |
+
"labels_evaluated": [
|
| 811 |
+
"PPSN"
|
| 812 |
+
],
|
| 813 |
+
"elapsed_seconds": 0.11162209301255643,
|
| 814 |
+
"examples_per_second": 62.711599568488346,
|
| 815 |
+
"overall": {
|
| 816 |
+
"precision": 1.0,
|
| 817 |
+
"recall": 1.0,
|
| 818 |
+
"f1": 1.0,
|
| 819 |
+
"tp": 3,
|
| 820 |
+
"fp": 0,
|
| 821 |
+
"fn": 0
|
| 822 |
+
},
|
| 823 |
+
"by_label": {
|
| 824 |
+
"PPSN": {
|
| 825 |
+
"precision": 1.0,
|
| 826 |
+
"recall": 1.0,
|
| 827 |
+
"f1": 1.0,
|
| 828 |
+
"tp": 3,
|
| 829 |
+
"fp": 0,
|
| 830 |
+
"fn": 0
|
| 831 |
+
}
|
| 832 |
+
}
|
| 833 |
+
},
|
| 834 |
+
"candidate_full_remaining": {
|
| 835 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 836 |
+
"input": "eval/irish_remaining_gaps_v2.jsonl",
|
| 837 |
+
"loader_type": "standard",
|
| 838 |
+
"device": "cpu",
|
| 839 |
+
"examples": 6,
|
| 840 |
+
"batch_size": 8,
|
| 841 |
+
"min_score": 0.4,
|
| 842 |
+
"ppsn_min_score": 0.55,
|
| 843 |
+
"iou_threshold": 1.0,
|
| 844 |
+
"ppsn_decoder": "word_aligned",
|
| 845 |
+
"labels_evaluated": [
|
| 846 |
+
"PASSPORT_NUMBER",
|
| 847 |
+
"PHONE_NUMBER"
|
| 848 |
+
],
|
| 849 |
+
"elapsed_seconds": 0.09866602800320834,
|
| 850 |
+
"examples_per_second": 60.8112044381162,
|
| 851 |
+
"overall": {
|
| 852 |
+
"precision": 0.5,
|
| 853 |
+
"recall": 0.4,
|
| 854 |
+
"f1": 0.4444444444444445,
|
| 855 |
+
"tp": 2,
|
| 856 |
+
"fp": 2,
|
| 857 |
+
"fn": 3
|
| 858 |
+
},
|
| 859 |
+
"by_label": {
|
| 860 |
+
"PASSPORT_NUMBER": {
|
| 861 |
+
"precision": 0.0,
|
| 862 |
+
"recall": 0.0,
|
| 863 |
+
"f1": 0.0,
|
| 864 |
+
"tp": 0,
|
| 865 |
+
"fp": 1,
|
| 866 |
+
"fn": 2
|
| 867 |
+
},
|
| 868 |
+
"PHONE_NUMBER": {
|
| 869 |
+
"precision": 0.6666666666666666,
|
| 870 |
+
"recall": 0.6666666666666666,
|
| 871 |
+
"f1": 0.6666666666666666,
|
| 872 |
+
"tp": 2,
|
| 873 |
+
"fp": 1,
|
| 874 |
+
"fn": 1
|
| 875 |
+
}
|
| 876 |
+
}
|
| 877 |
+
},
|
| 878 |
+
"candidate_full_multilingual": {
|
| 879 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 880 |
+
"input": "eval/multilingual_ppsn_v1_all.jsonl",
|
| 881 |
+
"loader_type": "standard",
|
| 882 |
+
"device": "cpu",
|
| 883 |
+
"examples": 168,
|
| 884 |
+
"batch_size": 16,
|
| 885 |
+
"ppsn_decoder": "word_aligned",
|
| 886 |
+
"elapsed_seconds": 1.3280671570100822,
|
| 887 |
+
"examples_per_second": 126.49962700547727,
|
| 888 |
+
"label_filter": "PPSN",
|
| 889 |
+
"overall": {
|
| 890 |
+
"precision": 0.875,
|
| 891 |
+
"recall": 1.0,
|
| 892 |
+
"f1": 0.9333333333333333,
|
| 893 |
+
"tp": 84,
|
| 894 |
+
"fp": 12,
|
| 895 |
+
"fn": 0
|
| 896 |
+
},
|
| 897 |
+
"by_domain": {
|
| 898 |
+
"citizen_chat": {
|
| 899 |
+
"precision": 0.875,
|
| 900 |
+
"recall": 1.0,
|
| 901 |
+
"f1": 0.9333333333333333,
|
| 902 |
+
"tp": 28,
|
| 903 |
+
"fp": 4,
|
| 904 |
+
"fn": 0
|
| 905 |
+
},
|
| 906 |
+
"gov_data": {
|
| 907 |
+
"precision": 0.875,
|
| 908 |
+
"recall": 1.0,
|
| 909 |
+
"f1": 0.9333333333333333,
|
| 910 |
+
"tp": 28,
|
| 911 |
+
"fp": 4,
|
| 912 |
+
"fn": 0
|
| 913 |
+
},
|
| 914 |
+
"hse_medical": {
|
| 915 |
+
"precision": 0.875,
|
| 916 |
+
"recall": 1.0,
|
| 917 |
+
"f1": 0.9333333333333333,
|
| 918 |
+
"tp": 28,
|
| 919 |
+
"fp": 4,
|
| 920 |
+
"fn": 0
|
| 921 |
+
}
|
| 922 |
+
},
|
| 923 |
+
"by_language": {
|
| 924 |
+
"de": {
|
| 925 |
+
"precision": 1.0,
|
| 926 |
+
"recall": 1.0,
|
| 927 |
+
"f1": 1.0,
|
| 928 |
+
"tp": 6,
|
| 929 |
+
"fp": 0,
|
| 930 |
+
"fn": 0
|
| 931 |
+
},
|
| 932 |
+
"en": {
|
| 933 |
+
"precision": 1.0,
|
| 934 |
+
"recall": 1.0,
|
| 935 |
+
"f1": 1.0,
|
| 936 |
+
"tp": 6,
|
| 937 |
+
"fp": 0,
|
| 938 |
+
"fn": 0
|
| 939 |
+
},
|
| 940 |
+
"es": {
|
| 941 |
+
"precision": 1.0,
|
| 942 |
+
"recall": 1.0,
|
| 943 |
+
"f1": 1.0,
|
| 944 |
+
"tp": 6,
|
| 945 |
+
"fp": 0,
|
| 946 |
+
"fn": 0
|
| 947 |
+
},
|
| 948 |
+
"fr": {
|
| 949 |
+
"precision": 1.0,
|
| 950 |
+
"recall": 1.0,
|
| 951 |
+
"f1": 1.0,
|
| 952 |
+
"tp": 6,
|
| 953 |
+
"fp": 0,
|
| 954 |
+
"fn": 0
|
| 955 |
+
},
|
| 956 |
+
"ga": {
|
| 957 |
+
"precision": 1.0,
|
| 958 |
+
"recall": 1.0,
|
| 959 |
+
"f1": 1.0,
|
| 960 |
+
"tp": 6,
|
| 961 |
+
"fp": 0,
|
| 962 |
+
"fn": 0
|
| 963 |
+
},
|
| 964 |
+
"it": {
|
| 965 |
+
"precision": 1.0,
|
| 966 |
+
"recall": 1.0,
|
| 967 |
+
"f1": 1.0,
|
| 968 |
+
"tp": 6,
|
| 969 |
+
"fp": 0,
|
| 970 |
+
"fn": 0
|
| 971 |
+
},
|
| 972 |
+
"ja": {
|
| 973 |
+
"precision": 0.6666666666666666,
|
| 974 |
+
"recall": 1.0,
|
| 975 |
+
"f1": 0.8,
|
| 976 |
+
"tp": 6,
|
| 977 |
+
"fp": 3,
|
| 978 |
+
"fn": 0
|
| 979 |
+
},
|
| 980 |
+
"nl": {
|
| 981 |
+
"precision": 1.0,
|
| 982 |
+
"recall": 1.0,
|
| 983 |
+
"f1": 1.0,
|
| 984 |
+
"tp": 6,
|
| 985 |
+
"fp": 0,
|
| 986 |
+
"fn": 0
|
| 987 |
+
},
|
| 988 |
+
"pl": {
|
| 989 |
+
"precision": 1.0,
|
| 990 |
+
"recall": 1.0,
|
| 991 |
+
"f1": 1.0,
|
| 992 |
+
"tp": 6,
|
| 993 |
+
"fp": 0,
|
| 994 |
+
"fn": 0
|
| 995 |
+
},
|
| 996 |
+
"pt": {
|
| 997 |
+
"precision": 1.0,
|
| 998 |
+
"recall": 1.0,
|
| 999 |
+
"f1": 1.0,
|
| 1000 |
+
"tp": 6,
|
| 1001 |
+
"fp": 0,
|
| 1002 |
+
"fn": 0
|
| 1003 |
+
},
|
| 1004 |
+
"ro": {
|
| 1005 |
+
"precision": 1.0,
|
| 1006 |
+
"recall": 1.0,
|
| 1007 |
+
"f1": 1.0,
|
| 1008 |
+
"tp": 6,
|
| 1009 |
+
"fp": 0,
|
| 1010 |
+
"fn": 0
|
| 1011 |
+
},
|
| 1012 |
+
"ru": {
|
| 1013 |
+
"precision": 0.6666666666666666,
|
| 1014 |
+
"recall": 1.0,
|
| 1015 |
+
"f1": 0.8,
|
| 1016 |
+
"tp": 6,
|
| 1017 |
+
"fp": 3,
|
| 1018 |
+
"fn": 0
|
| 1019 |
+
},
|
| 1020 |
+
"uk": {
|
| 1021 |
+
"precision": 0.6666666666666666,
|
| 1022 |
+
"recall": 1.0,
|
| 1023 |
+
"f1": 0.8,
|
| 1024 |
+
"tp": 6,
|
| 1025 |
+
"fp": 3,
|
| 1026 |
+
"fn": 0
|
| 1027 |
+
},
|
| 1028 |
+
"zh": {
|
| 1029 |
+
"precision": 0.6666666666666666,
|
| 1030 |
+
"recall": 1.0,
|
| 1031 |
+
"f1": 0.8,
|
| 1032 |
+
"tp": 6,
|
| 1033 |
+
"fp": 3,
|
| 1034 |
+
"fn": 0
|
| 1035 |
+
}
|
| 1036 |
+
}
|
| 1037 |
+
},
|
| 1038 |
+
"current_q8_core": {
|
| 1039 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 1040 |
+
"input": "eval/irish_core_pii_v1.jsonl",
|
| 1041 |
+
"loader_type": "onnx",
|
| 1042 |
+
"device": "cpu",
|
| 1043 |
+
"examples": 37,
|
| 1044 |
+
"batch_size": 8,
|
| 1045 |
+
"min_score": 0.45,
|
| 1046 |
+
"ppsn_min_score": 0.6,
|
| 1047 |
+
"iou_threshold": 0.5,
|
| 1048 |
+
"ppsn_decoder": "word_aligned",
|
| 1049 |
+
"labels_evaluated": [
|
| 1050 |
+
"ACCOUNT_NUMBER",
|
| 1051 |
+
"BANK_ROUTING_NUMBER",
|
| 1052 |
+
"CREDIT_DEBIT_CARD",
|
| 1053 |
+
"EMAIL",
|
| 1054 |
+
"FIRST_NAME",
|
| 1055 |
+
"LAST_NAME",
|
| 1056 |
+
"PASSPORT_NUMBER",
|
| 1057 |
+
"PHONE_NUMBER",
|
| 1058 |
+
"POSTCODE",
|
| 1059 |
+
"PPSN",
|
| 1060 |
+
"SWIFT_BIC"
|
| 1061 |
+
],
|
| 1062 |
+
"elapsed_seconds": 0.8229939279844984,
|
| 1063 |
+
"examples_per_second": 44.957804355388774,
|
| 1064 |
+
"overall": {
|
| 1065 |
+
"precision": 0.9493670886075949,
|
| 1066 |
+
"recall": 0.9868421052631579,
|
| 1067 |
+
"f1": 0.967741935483871,
|
| 1068 |
+
"tp": 75,
|
| 1069 |
+
"fp": 4,
|
| 1070 |
+
"fn": 1
|
| 1071 |
+
},
|
| 1072 |
+
"by_label": {
|
| 1073 |
+
"ACCOUNT_NUMBER": {
|
| 1074 |
+
"precision": 0.6,
|
| 1075 |
+
"recall": 1.0,
|
| 1076 |
+
"f1": 0.7499999999999999,
|
| 1077 |
+
"tp": 3,
|
| 1078 |
+
"fp": 2,
|
| 1079 |
+
"fn": 0
|
| 1080 |
+
},
|
| 1081 |
+
"BANK_ROUTING_NUMBER": {
|
| 1082 |
+
"precision": 1.0,
|
| 1083 |
+
"recall": 1.0,
|
| 1084 |
+
"f1": 1.0,
|
| 1085 |
+
"tp": 1,
|
| 1086 |
+
"fp": 0,
|
| 1087 |
+
"fn": 0
|
| 1088 |
+
},
|
| 1089 |
+
"CREDIT_DEBIT_CARD": {
|
| 1090 |
+
"precision": 1.0,
|
| 1091 |
+
"recall": 1.0,
|
| 1092 |
+
"f1": 1.0,
|
| 1093 |
+
"tp": 2,
|
| 1094 |
+
"fp": 0,
|
| 1095 |
+
"fn": 0
|
| 1096 |
+
},
|
| 1097 |
+
"EMAIL": {
|
| 1098 |
+
"precision": 1.0,
|
| 1099 |
+
"recall": 1.0,
|
| 1100 |
+
"f1": 1.0,
|
| 1101 |
+
"tp": 6,
|
| 1102 |
+
"fp": 0,
|
| 1103 |
+
"fn": 0
|
| 1104 |
+
},
|
| 1105 |
+
"FIRST_NAME": {
|
| 1106 |
+
"precision": 1.0,
|
| 1107 |
+
"recall": 1.0,
|
| 1108 |
+
"f1": 1.0,
|
| 1109 |
+
"tp": 19,
|
| 1110 |
+
"fp": 0,
|
| 1111 |
+
"fn": 0
|
| 1112 |
+
},
|
| 1113 |
+
"LAST_NAME": {
|
| 1114 |
+
"precision": 1.0,
|
| 1115 |
+
"recall": 1.0,
|
| 1116 |
+
"f1": 1.0,
|
| 1117 |
+
"tp": 19,
|
| 1118 |
+
"fp": 0,
|
| 1119 |
+
"fn": 0
|
| 1120 |
+
},
|
| 1121 |
+
"PASSPORT_NUMBER": {
|
| 1122 |
+
"precision": 1.0,
|
| 1123 |
+
"recall": 1.0,
|
| 1124 |
+
"f1": 1.0,
|
| 1125 |
+
"tp": 2,
|
| 1126 |
+
"fp": 0,
|
| 1127 |
+
"fn": 0
|
| 1128 |
+
},
|
| 1129 |
+
"PHONE_NUMBER": {
|
| 1130 |
+
"precision": 1.0,
|
| 1131 |
+
"recall": 1.0,
|
| 1132 |
+
"f1": 1.0,
|
| 1133 |
+
"tp": 12,
|
| 1134 |
+
"fp": 0,
|
| 1135 |
+
"fn": 0
|
| 1136 |
+
},
|
| 1137 |
+
"POSTCODE": {
|
| 1138 |
+
"precision": 1.0,
|
| 1139 |
+
"recall": 0.75,
|
| 1140 |
+
"f1": 0.8571428571428571,
|
| 1141 |
+
"tp": 3,
|
| 1142 |
+
"fp": 0,
|
| 1143 |
+
"fn": 1
|
| 1144 |
+
},
|
| 1145 |
+
"PPSN": {
|
| 1146 |
+
"precision": 0.75,
|
| 1147 |
+
"recall": 1.0,
|
| 1148 |
+
"f1": 0.8571428571428571,
|
| 1149 |
+
"tp": 6,
|
| 1150 |
+
"fp": 2,
|
| 1151 |
+
"fn": 0
|
| 1152 |
+
},
|
| 1153 |
+
"SWIFT_BIC": {
|
| 1154 |
+
"precision": 1.0,
|
| 1155 |
+
"recall": 1.0,
|
| 1156 |
+
"f1": 1.0,
|
| 1157 |
+
"tp": 2,
|
| 1158 |
+
"fp": 0,
|
| 1159 |
+
"fn": 0
|
| 1160 |
+
}
|
| 1161 |
+
}
|
| 1162 |
+
},
|
| 1163 |
+
"current_q8_edge": {
|
| 1164 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 1165 |
+
"input": "eval/irish_ppsn_phone_edge_v1.jsonl",
|
| 1166 |
+
"loader_type": "onnx",
|
| 1167 |
+
"device": "cpu",
|
| 1168 |
+
"examples": 22,
|
| 1169 |
+
"batch_size": 8,
|
| 1170 |
+
"min_score": 0.45,
|
| 1171 |
+
"ppsn_min_score": 0.6,
|
| 1172 |
+
"iou_threshold": 0.5,
|
| 1173 |
+
"ppsn_decoder": "word_aligned",
|
| 1174 |
+
"labels_evaluated": [
|
| 1175 |
+
"PHONE_NUMBER",
|
| 1176 |
+
"PPSN"
|
| 1177 |
+
],
|
| 1178 |
+
"elapsed_seconds": 0.4826828690129332,
|
| 1179 |
+
"examples_per_second": 45.57858049735451,
|
| 1180 |
+
"overall": {
|
| 1181 |
+
"precision": 0.9047619047619048,
|
| 1182 |
+
"recall": 1.0,
|
| 1183 |
+
"f1": 0.9500000000000001,
|
| 1184 |
+
"tp": 19,
|
| 1185 |
+
"fp": 2,
|
| 1186 |
+
"fn": 0
|
| 1187 |
+
},
|
| 1188 |
+
"by_label": {
|
| 1189 |
+
"PHONE_NUMBER": {
|
| 1190 |
+
"precision": 1.0,
|
| 1191 |
+
"recall": 1.0,
|
| 1192 |
+
"f1": 1.0,
|
| 1193 |
+
"tp": 13,
|
| 1194 |
+
"fp": 0,
|
| 1195 |
+
"fn": 0
|
| 1196 |
+
},
|
| 1197 |
+
"PPSN": {
|
| 1198 |
+
"precision": 0.75,
|
| 1199 |
+
"recall": 1.0,
|
| 1200 |
+
"f1": 0.8571428571428571,
|
| 1201 |
+
"tp": 6,
|
| 1202 |
+
"fp": 2,
|
| 1203 |
+
"fn": 0
|
| 1204 |
+
}
|
| 1205 |
+
}
|
| 1206 |
+
},
|
| 1207 |
+
"current_q8_numeric": {
|
| 1208 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 1209 |
+
"input": "eval/irish_numeric_qafix_v2.jsonl",
|
| 1210 |
+
"loader_type": "onnx",
|
| 1211 |
+
"device": "cpu",
|
| 1212 |
+
"examples": 19,
|
| 1213 |
+
"batch_size": 8,
|
| 1214 |
+
"min_score": 0.45,
|
| 1215 |
+
"ppsn_min_score": 0.6,
|
| 1216 |
+
"iou_threshold": 0.5,
|
| 1217 |
+
"ppsn_decoder": "word_aligned",
|
| 1218 |
+
"labels_evaluated": [
|
| 1219 |
+
"BANK_ROUTING_NUMBER",
|
| 1220 |
+
"PASSPORT_NUMBER",
|
| 1221 |
+
"PHONE_NUMBER"
|
| 1222 |
+
],
|
| 1223 |
+
"elapsed_seconds": 0.48927704500965774,
|
| 1224 |
+
"examples_per_second": 38.8328048368281,
|
| 1225 |
+
"overall": {
|
| 1226 |
+
"precision": 0.8125,
|
| 1227 |
+
"recall": 0.9285714285714286,
|
| 1228 |
+
"f1": 0.8666666666666666,
|
| 1229 |
+
"tp": 13,
|
| 1230 |
+
"fp": 3,
|
| 1231 |
+
"fn": 1
|
| 1232 |
+
},
|
| 1233 |
+
"by_label": {
|
| 1234 |
+
"BANK_ROUTING_NUMBER": {
|
| 1235 |
+
"precision": 1.0,
|
| 1236 |
+
"recall": 1.0,
|
| 1237 |
+
"f1": 1.0,
|
| 1238 |
+
"tp": 5,
|
| 1239 |
+
"fp": 0,
|
| 1240 |
+
"fn": 0
|
| 1241 |
+
},
|
| 1242 |
+
"PASSPORT_NUMBER": {
|
| 1243 |
+
"precision": 0.7142857142857143,
|
| 1244 |
+
"recall": 1.0,
|
| 1245 |
+
"f1": 0.8333333333333333,
|
| 1246 |
+
"tp": 5,
|
| 1247 |
+
"fp": 2,
|
| 1248 |
+
"fn": 0
|
| 1249 |
+
},
|
| 1250 |
+
"PHONE_NUMBER": {
|
| 1251 |
+
"precision": 0.75,
|
| 1252 |
+
"recall": 0.75,
|
| 1253 |
+
"f1": 0.75,
|
| 1254 |
+
"tp": 3,
|
| 1255 |
+
"fp": 1,
|
| 1256 |
+
"fn": 1
|
| 1257 |
+
}
|
| 1258 |
+
}
|
| 1259 |
+
},
|
| 1260 |
+
"current_q8_gap": {
|
| 1261 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 1262 |
+
"input": "eval/irish_core_gap_feedback_v1.jsonl",
|
| 1263 |
+
"loader_type": "onnx",
|
| 1264 |
+
"device": "cpu",
|
| 1265 |
+
"examples": 14,
|
| 1266 |
+
"batch_size": 8,
|
| 1267 |
+
"min_score": 0.45,
|
| 1268 |
+
"ppsn_min_score": 0.6,
|
| 1269 |
+
"iou_threshold": 0.5,
|
| 1270 |
+
"ppsn_decoder": "word_aligned",
|
| 1271 |
+
"labels_evaluated": [
|
| 1272 |
+
"BANK_ROUTING_NUMBER",
|
| 1273 |
+
"PASSPORT_NUMBER",
|
| 1274 |
+
"PHONE_NUMBER"
|
| 1275 |
+
],
|
| 1276 |
+
"elapsed_seconds": 0.25282940798206255,
|
| 1277 |
+
"examples_per_second": 55.37330531183009,
|
| 1278 |
+
"overall": {
|
| 1279 |
+
"precision": 0.8333333333333334,
|
| 1280 |
+
"recall": 0.9090909090909091,
|
| 1281 |
+
"f1": 0.8695652173913043,
|
| 1282 |
+
"tp": 10,
|
| 1283 |
+
"fp": 2,
|
| 1284 |
+
"fn": 1
|
| 1285 |
+
},
|
| 1286 |
+
"by_label": {
|
| 1287 |
+
"BANK_ROUTING_NUMBER": {
|
| 1288 |
+
"precision": 1.0,
|
| 1289 |
+
"recall": 1.0,
|
| 1290 |
+
"f1": 1.0,
|
| 1291 |
+
"tp": 4,
|
| 1292 |
+
"fp": 0,
|
| 1293 |
+
"fn": 0
|
| 1294 |
+
},
|
| 1295 |
+
"PASSPORT_NUMBER": {
|
| 1296 |
+
"precision": 0.8,
|
| 1297 |
+
"recall": 1.0,
|
| 1298 |
+
"f1": 0.888888888888889,
|
| 1299 |
+
"tp": 4,
|
| 1300 |
+
"fp": 1,
|
| 1301 |
+
"fn": 0
|
| 1302 |
+
},
|
| 1303 |
+
"PHONE_NUMBER": {
|
| 1304 |
+
"precision": 0.6666666666666666,
|
| 1305 |
+
"recall": 0.6666666666666666,
|
| 1306 |
+
"f1": 0.6666666666666666,
|
| 1307 |
+
"tp": 2,
|
| 1308 |
+
"fp": 1,
|
| 1309 |
+
"fn": 1
|
| 1310 |
+
}
|
| 1311 |
+
}
|
| 1312 |
+
},
|
| 1313 |
+
"current_q8_user": {
|
| 1314 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 1315 |
+
"input": "eval/user_raw_regression_cases_v1.jsonl",
|
| 1316 |
+
"loader_type": "onnx",
|
| 1317 |
+
"device": "cpu",
|
| 1318 |
+
"examples": 7,
|
| 1319 |
+
"batch_size": 8,
|
| 1320 |
+
"min_score": 0.45,
|
| 1321 |
+
"ppsn_min_score": 0.6,
|
| 1322 |
+
"iou_threshold": 0.5,
|
| 1323 |
+
"ppsn_decoder": "word_aligned",
|
| 1324 |
+
"labels_evaluated": [
|
| 1325 |
+
"PPSN"
|
| 1326 |
+
],
|
| 1327 |
+
"elapsed_seconds": 0.15658493799855933,
|
| 1328 |
+
"examples_per_second": 44.70417199427192,
|
| 1329 |
+
"overall": {
|
| 1330 |
+
"precision": 0.75,
|
| 1331 |
+
"recall": 1.0,
|
| 1332 |
+
"f1": 0.8571428571428571,
|
| 1333 |
+
"tp": 3,
|
| 1334 |
+
"fp": 1,
|
| 1335 |
+
"fn": 0
|
| 1336 |
+
},
|
| 1337 |
+
"by_label": {
|
| 1338 |
+
"PHONE_NUMBER": {
|
| 1339 |
+
"precision": 0.0,
|
| 1340 |
+
"recall": 0.0,
|
| 1341 |
+
"f1": 0.0,
|
| 1342 |
+
"tp": 0,
|
| 1343 |
+
"fp": 1,
|
| 1344 |
+
"fn": 0
|
| 1345 |
+
},
|
| 1346 |
+
"PPSN": {
|
| 1347 |
+
"precision": 1.0,
|
| 1348 |
+
"recall": 1.0,
|
| 1349 |
+
"f1": 1.0,
|
| 1350 |
+
"tp": 3,
|
| 1351 |
+
"fp": 0,
|
| 1352 |
+
"fn": 0
|
| 1353 |
+
}
|
| 1354 |
+
}
|
| 1355 |
+
},
|
| 1356 |
+
"current_q8_remaining": {
|
| 1357 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 1358 |
+
"input": "eval/irish_remaining_gaps_v2.jsonl",
|
| 1359 |
+
"loader_type": "onnx",
|
| 1360 |
+
"device": "cpu",
|
| 1361 |
+
"examples": 6,
|
| 1362 |
+
"batch_size": 8,
|
| 1363 |
+
"min_score": 0.45,
|
| 1364 |
+
"ppsn_min_score": 0.6,
|
| 1365 |
+
"iou_threshold": 1.0,
|
| 1366 |
+
"ppsn_decoder": "word_aligned",
|
| 1367 |
+
"labels_evaluated": [
|
| 1368 |
+
"PASSPORT_NUMBER",
|
| 1369 |
+
"PHONE_NUMBER"
|
| 1370 |
+
],
|
| 1371 |
+
"elapsed_seconds": 0.1308825800078921,
|
| 1372 |
+
"examples_per_second": 45.84261709723483,
|
| 1373 |
+
"overall": {
|
| 1374 |
+
"precision": 0.6,
|
| 1375 |
+
"recall": 0.6,
|
| 1376 |
+
"f1": 0.6,
|
| 1377 |
+
"tp": 3,
|
| 1378 |
+
"fp": 2,
|
| 1379 |
+
"fn": 2
|
| 1380 |
+
},
|
| 1381 |
+
"by_label": {
|
| 1382 |
+
"PASSPORT_NUMBER": {
|
| 1383 |
+
"precision": 0.0,
|
| 1384 |
+
"recall": 0.0,
|
| 1385 |
+
"f1": 0.0,
|
| 1386 |
+
"tp": 0,
|
| 1387 |
+
"fp": 2,
|
| 1388 |
+
"fn": 2
|
| 1389 |
+
},
|
| 1390 |
+
"PHONE_NUMBER": {
|
| 1391 |
+
"precision": 1.0,
|
| 1392 |
+
"recall": 1.0,
|
| 1393 |
+
"f1": 1.0,
|
| 1394 |
+
"tp": 3,
|
| 1395 |
+
"fp": 0,
|
| 1396 |
+
"fn": 0
|
| 1397 |
+
}
|
| 1398 |
+
}
|
| 1399 |
+
},
|
| 1400 |
+
"current_q8_multilingual": {
|
| 1401 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 1402 |
+
"input": "eval/multilingual_ppsn_v1_all.jsonl",
|
| 1403 |
+
"loader_type": "onnx",
|
| 1404 |
+
"device": "cpu",
|
| 1405 |
+
"examples": 168,
|
| 1406 |
+
"batch_size": 16,
|
| 1407 |
+
"ppsn_decoder": "word_aligned",
|
| 1408 |
+
"elapsed_seconds": 0.5646560749737546,
|
| 1409 |
+
"examples_per_second": 297.5262419833324,
|
| 1410 |
+
"label_filter": "PPSN",
|
| 1411 |
+
"overall": {
|
| 1412 |
+
"precision": 0.6774193548387096,
|
| 1413 |
+
"recall": 1.0,
|
| 1414 |
+
"f1": 0.8076923076923077,
|
| 1415 |
+
"tp": 84,
|
| 1416 |
+
"fp": 40,
|
| 1417 |
+
"fn": 0
|
| 1418 |
+
},
|
| 1419 |
+
"by_domain": {
|
| 1420 |
+
"citizen_chat": {
|
| 1421 |
+
"precision": 0.6666666666666666,
|
| 1422 |
+
"recall": 1.0,
|
| 1423 |
+
"f1": 0.8,
|
| 1424 |
+
"tp": 28,
|
| 1425 |
+
"fp": 14,
|
| 1426 |
+
"fn": 0
|
| 1427 |
+
},
|
| 1428 |
+
"gov_data": {
|
| 1429 |
+
"precision": 0.6829268292682927,
|
| 1430 |
+
"recall": 1.0,
|
| 1431 |
+
"f1": 0.8115942028985507,
|
| 1432 |
+
"tp": 28,
|
| 1433 |
+
"fp": 13,
|
| 1434 |
+
"fn": 0
|
| 1435 |
+
},
|
| 1436 |
+
"hse_medical": {
|
| 1437 |
+
"precision": 0.6829268292682927,
|
| 1438 |
+
"recall": 1.0,
|
| 1439 |
+
"f1": 0.8115942028985507,
|
| 1440 |
+
"tp": 28,
|
| 1441 |
+
"fp": 13,
|
| 1442 |
+
"fn": 0
|
| 1443 |
+
}
|
| 1444 |
+
},
|
| 1445 |
+
"by_language": {
|
| 1446 |
+
"de": {
|
| 1447 |
+
"precision": 0.6666666666666666,
|
| 1448 |
+
"recall": 1.0,
|
| 1449 |
+
"f1": 0.8,
|
| 1450 |
+
"tp": 6,
|
| 1451 |
+
"fp": 3,
|
| 1452 |
+
"fn": 0
|
| 1453 |
+
},
|
| 1454 |
+
"en": {
|
| 1455 |
+
"precision": 0.75,
|
| 1456 |
+
"recall": 1.0,
|
| 1457 |
+
"f1": 0.8571428571428571,
|
| 1458 |
+
"tp": 6,
|
| 1459 |
+
"fp": 2,
|
| 1460 |
+
"fn": 0
|
| 1461 |
+
},
|
| 1462 |
+
"es": {
|
| 1463 |
+
"precision": 0.75,
|
| 1464 |
+
"recall": 1.0,
|
| 1465 |
+
"f1": 0.8571428571428571,
|
| 1466 |
+
"tp": 6,
|
| 1467 |
+
"fp": 2,
|
| 1468 |
+
"fn": 0
|
| 1469 |
+
},
|
| 1470 |
+
"fr": {
|
| 1471 |
+
"precision": 0.8571428571428571,
|
| 1472 |
+
"recall": 1.0,
|
| 1473 |
+
"f1": 0.923076923076923,
|
| 1474 |
+
"tp": 6,
|
| 1475 |
+
"fp": 1,
|
| 1476 |
+
"fn": 0
|
| 1477 |
+
},
|
| 1478 |
+
"ga": {
|
| 1479 |
+
"precision": 0.5454545454545454,
|
| 1480 |
+
"recall": 1.0,
|
| 1481 |
+
"f1": 0.7058823529411764,
|
| 1482 |
+
"tp": 6,
|
| 1483 |
+
"fp": 5,
|
| 1484 |
+
"fn": 0
|
| 1485 |
+
},
|
| 1486 |
+
"it": {
|
| 1487 |
+
"precision": 0.6666666666666666,
|
| 1488 |
+
"recall": 1.0,
|
| 1489 |
+
"f1": 0.8,
|
| 1490 |
+
"tp": 6,
|
| 1491 |
+
"fp": 3,
|
| 1492 |
+
"fn": 0
|
| 1493 |
+
},
|
| 1494 |
+
"ja": {
|
| 1495 |
+
"precision": 0.6,
|
| 1496 |
+
"recall": 1.0,
|
| 1497 |
+
"f1": 0.7499999999999999,
|
| 1498 |
+
"tp": 6,
|
| 1499 |
+
"fp": 4,
|
| 1500 |
+
"fn": 0
|
| 1501 |
+
},
|
| 1502 |
+
"nl": {
|
| 1503 |
+
"precision": 0.6666666666666666,
|
| 1504 |
+
"recall": 1.0,
|
| 1505 |
+
"f1": 0.8,
|
| 1506 |
+
"tp": 6,
|
| 1507 |
+
"fp": 3,
|
| 1508 |
+
"fn": 0
|
| 1509 |
+
},
|
| 1510 |
+
"pl": {
|
| 1511 |
+
"precision": 0.75,
|
| 1512 |
+
"recall": 1.0,
|
| 1513 |
+
"f1": 0.8571428571428571,
|
| 1514 |
+
"tp": 6,
|
| 1515 |
+
"fp": 2,
|
| 1516 |
+
"fn": 0
|
| 1517 |
+
},
|
| 1518 |
+
"pt": {
|
| 1519 |
+
"precision": 0.75,
|
| 1520 |
+
"recall": 1.0,
|
| 1521 |
+
"f1": 0.8571428571428571,
|
| 1522 |
+
"tp": 6,
|
| 1523 |
+
"fp": 2,
|
| 1524 |
+
"fn": 0
|
| 1525 |
+
},
|
| 1526 |
+
"ro": {
|
| 1527 |
+
"precision": 0.6666666666666666,
|
| 1528 |
+
"recall": 1.0,
|
| 1529 |
+
"f1": 0.8,
|
| 1530 |
+
"tp": 6,
|
| 1531 |
+
"fp": 3,
|
| 1532 |
+
"fn": 0
|
| 1533 |
+
},
|
| 1534 |
+
"ru": {
|
| 1535 |
+
"precision": 0.6666666666666666,
|
| 1536 |
+
"recall": 1.0,
|
| 1537 |
+
"f1": 0.8,
|
| 1538 |
+
"tp": 6,
|
| 1539 |
+
"fp": 3,
|
| 1540 |
+
"fn": 0
|
| 1541 |
+
},
|
| 1542 |
+
"uk": {
|
| 1543 |
+
"precision": 0.6666666666666666,
|
| 1544 |
+
"recall": 1.0,
|
| 1545 |
+
"f1": 0.8,
|
| 1546 |
+
"tp": 6,
|
| 1547 |
+
"fp": 3,
|
| 1548 |
+
"fn": 0
|
| 1549 |
+
},
|
| 1550 |
+
"zh": {
|
| 1551 |
+
"precision": 0.6,
|
| 1552 |
+
"recall": 1.0,
|
| 1553 |
+
"f1": 0.7499999999999999,
|
| 1554 |
+
"tp": 6,
|
| 1555 |
+
"fp": 4,
|
| 1556 |
+
"fn": 0
|
| 1557 |
+
}
|
| 1558 |
+
},
|
| 1559 |
+
"onnx_file": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8/model_quantized.onnx"
|
| 1560 |
+
},
|
| 1561 |
+
"candidate_q8_core": {
|
| 1562 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1563 |
+
"input": "eval/irish_core_pii_v1.jsonl",
|
| 1564 |
+
"loader_type": "onnx",
|
| 1565 |
+
"device": "cpu",
|
| 1566 |
+
"examples": 37,
|
| 1567 |
+
"batch_size": 8,
|
| 1568 |
+
"min_score": 0.45,
|
| 1569 |
+
"ppsn_min_score": 0.6,
|
| 1570 |
+
"iou_threshold": 0.5,
|
| 1571 |
+
"ppsn_decoder": "word_aligned",
|
| 1572 |
+
"labels_evaluated": [
|
| 1573 |
+
"ACCOUNT_NUMBER",
|
| 1574 |
+
"BANK_ROUTING_NUMBER",
|
| 1575 |
+
"CREDIT_DEBIT_CARD",
|
| 1576 |
+
"EMAIL",
|
| 1577 |
+
"FIRST_NAME",
|
| 1578 |
+
"LAST_NAME",
|
| 1579 |
+
"PASSPORT_NUMBER",
|
| 1580 |
+
"PHONE_NUMBER",
|
| 1581 |
+
"POSTCODE",
|
| 1582 |
+
"PPSN",
|
| 1583 |
+
"SWIFT_BIC"
|
| 1584 |
+
],
|
| 1585 |
+
"elapsed_seconds": 0.8233243200229481,
|
| 1586 |
+
"examples_per_second": 44.93976322595295,
|
| 1587 |
+
"overall": {
|
| 1588 |
+
"precision": 0.9493670886075949,
|
| 1589 |
+
"recall": 0.9868421052631579,
|
| 1590 |
+
"f1": 0.967741935483871,
|
| 1591 |
+
"tp": 75,
|
| 1592 |
+
"fp": 4,
|
| 1593 |
+
"fn": 1
|
| 1594 |
+
},
|
| 1595 |
+
"by_label": {
|
| 1596 |
+
"ACCOUNT_NUMBER": {
|
| 1597 |
+
"precision": 0.6,
|
| 1598 |
+
"recall": 1.0,
|
| 1599 |
+
"f1": 0.7499999999999999,
|
| 1600 |
+
"tp": 3,
|
| 1601 |
+
"fp": 2,
|
| 1602 |
+
"fn": 0
|
| 1603 |
+
},
|
| 1604 |
+
"BANK_ROUTING_NUMBER": {
|
| 1605 |
+
"precision": 1.0,
|
| 1606 |
+
"recall": 1.0,
|
| 1607 |
+
"f1": 1.0,
|
| 1608 |
+
"tp": 1,
|
| 1609 |
+
"fp": 0,
|
| 1610 |
+
"fn": 0
|
| 1611 |
+
},
|
| 1612 |
+
"CREDIT_DEBIT_CARD": {
|
| 1613 |
+
"precision": 1.0,
|
| 1614 |
+
"recall": 1.0,
|
| 1615 |
+
"f1": 1.0,
|
| 1616 |
+
"tp": 2,
|
| 1617 |
+
"fp": 0,
|
| 1618 |
+
"fn": 0
|
| 1619 |
+
},
|
| 1620 |
+
"EMAIL": {
|
| 1621 |
+
"precision": 1.0,
|
| 1622 |
+
"recall": 1.0,
|
| 1623 |
+
"f1": 1.0,
|
| 1624 |
+
"tp": 6,
|
| 1625 |
+
"fp": 0,
|
| 1626 |
+
"fn": 0
|
| 1627 |
+
},
|
| 1628 |
+
"FIRST_NAME": {
|
| 1629 |
+
"precision": 1.0,
|
| 1630 |
+
"recall": 1.0,
|
| 1631 |
+
"f1": 1.0,
|
| 1632 |
+
"tp": 19,
|
| 1633 |
+
"fp": 0,
|
| 1634 |
+
"fn": 0
|
| 1635 |
+
},
|
| 1636 |
+
"LAST_NAME": {
|
| 1637 |
+
"precision": 1.0,
|
| 1638 |
+
"recall": 1.0,
|
| 1639 |
+
"f1": 1.0,
|
| 1640 |
+
"tp": 19,
|
| 1641 |
+
"fp": 0,
|
| 1642 |
+
"fn": 0
|
| 1643 |
+
},
|
| 1644 |
+
"PASSPORT_NUMBER": {
|
| 1645 |
+
"precision": 1.0,
|
| 1646 |
+
"recall": 1.0,
|
| 1647 |
+
"f1": 1.0,
|
| 1648 |
+
"tp": 2,
|
| 1649 |
+
"fp": 0,
|
| 1650 |
+
"fn": 0
|
| 1651 |
+
},
|
| 1652 |
+
"PHONE_NUMBER": {
|
| 1653 |
+
"precision": 1.0,
|
| 1654 |
+
"recall": 1.0,
|
| 1655 |
+
"f1": 1.0,
|
| 1656 |
+
"tp": 12,
|
| 1657 |
+
"fp": 0,
|
| 1658 |
+
"fn": 0
|
| 1659 |
+
},
|
| 1660 |
+
"POSTCODE": {
|
| 1661 |
+
"precision": 0.75,
|
| 1662 |
+
"recall": 0.75,
|
| 1663 |
+
"f1": 0.75,
|
| 1664 |
+
"tp": 3,
|
| 1665 |
+
"fp": 1,
|
| 1666 |
+
"fn": 1
|
| 1667 |
+
},
|
| 1668 |
+
"PPSN": {
|
| 1669 |
+
"precision": 0.8571428571428571,
|
| 1670 |
+
"recall": 1.0,
|
| 1671 |
+
"f1": 0.923076923076923,
|
| 1672 |
+
"tp": 6,
|
| 1673 |
+
"fp": 1,
|
| 1674 |
+
"fn": 0
|
| 1675 |
+
},
|
| 1676 |
+
"SWIFT_BIC": {
|
| 1677 |
+
"precision": 1.0,
|
| 1678 |
+
"recall": 1.0,
|
| 1679 |
+
"f1": 1.0,
|
| 1680 |
+
"tp": 2,
|
| 1681 |
+
"fp": 0,
|
| 1682 |
+
"fn": 0
|
| 1683 |
+
}
|
| 1684 |
+
}
|
| 1685 |
+
},
|
| 1686 |
+
"candidate_q8_edge": {
|
| 1687 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1688 |
+
"input": "eval/irish_ppsn_phone_edge_v1.jsonl",
|
| 1689 |
+
"loader_type": "onnx",
|
| 1690 |
+
"device": "cpu",
|
| 1691 |
+
"examples": 22,
|
| 1692 |
+
"batch_size": 8,
|
| 1693 |
+
"min_score": 0.45,
|
| 1694 |
+
"ppsn_min_score": 0.6,
|
| 1695 |
+
"iou_threshold": 0.5,
|
| 1696 |
+
"ppsn_decoder": "word_aligned",
|
| 1697 |
+
"labels_evaluated": [
|
| 1698 |
+
"PHONE_NUMBER",
|
| 1699 |
+
"PPSN"
|
| 1700 |
+
],
|
| 1701 |
+
"elapsed_seconds": 0.5273098170291632,
|
| 1702 |
+
"examples_per_second": 41.72120315139757,
|
| 1703 |
+
"overall": {
|
| 1704 |
+
"precision": 1.0,
|
| 1705 |
+
"recall": 1.0,
|
| 1706 |
+
"f1": 1.0,
|
| 1707 |
+
"tp": 19,
|
| 1708 |
+
"fp": 0,
|
| 1709 |
+
"fn": 0
|
| 1710 |
+
},
|
| 1711 |
+
"by_label": {
|
| 1712 |
+
"PHONE_NUMBER": {
|
| 1713 |
+
"precision": 1.0,
|
| 1714 |
+
"recall": 1.0,
|
| 1715 |
+
"f1": 1.0,
|
| 1716 |
+
"tp": 13,
|
| 1717 |
+
"fp": 0,
|
| 1718 |
+
"fn": 0
|
| 1719 |
+
},
|
| 1720 |
+
"PPSN": {
|
| 1721 |
+
"precision": 1.0,
|
| 1722 |
+
"recall": 1.0,
|
| 1723 |
+
"f1": 1.0,
|
| 1724 |
+
"tp": 6,
|
| 1725 |
+
"fp": 0,
|
| 1726 |
+
"fn": 0
|
| 1727 |
+
}
|
| 1728 |
+
}
|
| 1729 |
+
},
|
| 1730 |
+
"candidate_q8_numeric": {
|
| 1731 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1732 |
+
"input": "eval/irish_numeric_qafix_v2.jsonl",
|
| 1733 |
+
"loader_type": "onnx",
|
| 1734 |
+
"device": "cpu",
|
| 1735 |
+
"examples": 19,
|
| 1736 |
+
"batch_size": 8,
|
| 1737 |
+
"min_score": 0.45,
|
| 1738 |
+
"ppsn_min_score": 0.6,
|
| 1739 |
+
"iou_threshold": 0.5,
|
| 1740 |
+
"ppsn_decoder": "word_aligned",
|
| 1741 |
+
"labels_evaluated": [
|
| 1742 |
+
"BANK_ROUTING_NUMBER",
|
| 1743 |
+
"PASSPORT_NUMBER",
|
| 1744 |
+
"PHONE_NUMBER"
|
| 1745 |
+
],
|
| 1746 |
+
"elapsed_seconds": 0.3350751459947787,
|
| 1747 |
+
"examples_per_second": 56.70369834083745,
|
| 1748 |
+
"overall": {
|
| 1749 |
+
"precision": 0.875,
|
| 1750 |
+
"recall": 1.0,
|
| 1751 |
+
"f1": 0.9333333333333333,
|
| 1752 |
+
"tp": 14,
|
| 1753 |
+
"fp": 2,
|
| 1754 |
+
"fn": 0
|
| 1755 |
+
},
|
| 1756 |
+
"by_label": {
|
| 1757 |
+
"BANK_ROUTING_NUMBER": {
|
| 1758 |
+
"precision": 1.0,
|
| 1759 |
+
"recall": 1.0,
|
| 1760 |
+
"f1": 1.0,
|
| 1761 |
+
"tp": 5,
|
| 1762 |
+
"fp": 0,
|
| 1763 |
+
"fn": 0
|
| 1764 |
+
},
|
| 1765 |
+
"PASSPORT_NUMBER": {
|
| 1766 |
+
"precision": 0.8333333333333334,
|
| 1767 |
+
"recall": 1.0,
|
| 1768 |
+
"f1": 0.9090909090909091,
|
| 1769 |
+
"tp": 5,
|
| 1770 |
+
"fp": 1,
|
| 1771 |
+
"fn": 0
|
| 1772 |
+
},
|
| 1773 |
+
"PHONE_NUMBER": {
|
| 1774 |
+
"precision": 0.8,
|
| 1775 |
+
"recall": 1.0,
|
| 1776 |
+
"f1": 0.888888888888889,
|
| 1777 |
+
"tp": 4,
|
| 1778 |
+
"fp": 1,
|
| 1779 |
+
"fn": 0
|
| 1780 |
+
}
|
| 1781 |
+
}
|
| 1782 |
+
},
|
| 1783 |
+
"candidate_q8_gap": {
|
| 1784 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1785 |
+
"input": "eval/irish_core_gap_feedback_v1.jsonl",
|
| 1786 |
+
"loader_type": "onnx",
|
| 1787 |
+
"device": "cpu",
|
| 1788 |
+
"examples": 14,
|
| 1789 |
+
"batch_size": 8,
|
| 1790 |
+
"min_score": 0.45,
|
| 1791 |
+
"ppsn_min_score": 0.6,
|
| 1792 |
+
"iou_threshold": 0.5,
|
| 1793 |
+
"ppsn_decoder": "word_aligned",
|
| 1794 |
+
"labels_evaluated": [
|
| 1795 |
+
"BANK_ROUTING_NUMBER",
|
| 1796 |
+
"PASSPORT_NUMBER",
|
| 1797 |
+
"PHONE_NUMBER"
|
| 1798 |
+
],
|
| 1799 |
+
"elapsed_seconds": 0.1985326989670284,
|
| 1800 |
+
"examples_per_second": 70.51735090915713,
|
| 1801 |
+
"overall": {
|
| 1802 |
+
"precision": 0.8461538461538461,
|
| 1803 |
+
"recall": 1.0,
|
| 1804 |
+
"f1": 0.9166666666666666,
|
| 1805 |
+
"tp": 11,
|
| 1806 |
+
"fp": 2,
|
| 1807 |
+
"fn": 0
|
| 1808 |
+
},
|
| 1809 |
+
"by_label": {
|
| 1810 |
+
"BANK_ROUTING_NUMBER": {
|
| 1811 |
+
"precision": 1.0,
|
| 1812 |
+
"recall": 1.0,
|
| 1813 |
+
"f1": 1.0,
|
| 1814 |
+
"tp": 4,
|
| 1815 |
+
"fp": 0,
|
| 1816 |
+
"fn": 0
|
| 1817 |
+
},
|
| 1818 |
+
"PASSPORT_NUMBER": {
|
| 1819 |
+
"precision": 0.8,
|
| 1820 |
+
"recall": 1.0,
|
| 1821 |
+
"f1": 0.888888888888889,
|
| 1822 |
+
"tp": 4,
|
| 1823 |
+
"fp": 1,
|
| 1824 |
+
"fn": 0
|
| 1825 |
+
},
|
| 1826 |
+
"PHONE_NUMBER": {
|
| 1827 |
+
"precision": 0.75,
|
| 1828 |
+
"recall": 1.0,
|
| 1829 |
+
"f1": 0.8571428571428571,
|
| 1830 |
+
"tp": 3,
|
| 1831 |
+
"fp": 1,
|
| 1832 |
+
"fn": 0
|
| 1833 |
+
}
|
| 1834 |
+
}
|
| 1835 |
+
},
|
| 1836 |
+
"candidate_q8_user": {
|
| 1837 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1838 |
+
"input": "eval/user_raw_regression_cases_v1.jsonl",
|
| 1839 |
+
"loader_type": "onnx",
|
| 1840 |
+
"device": "cpu",
|
| 1841 |
+
"examples": 7,
|
| 1842 |
+
"batch_size": 8,
|
| 1843 |
+
"min_score": 0.45,
|
| 1844 |
+
"ppsn_min_score": 0.6,
|
| 1845 |
+
"iou_threshold": 0.5,
|
| 1846 |
+
"ppsn_decoder": "word_aligned",
|
| 1847 |
+
"labels_evaluated": [
|
| 1848 |
+
"PPSN"
|
| 1849 |
+
],
|
| 1850 |
+
"elapsed_seconds": 0.13422382500721142,
|
| 1851 |
+
"examples_per_second": 52.1516951228585,
|
| 1852 |
+
"overall": {
|
| 1853 |
+
"precision": 1.0,
|
| 1854 |
+
"recall": 1.0,
|
| 1855 |
+
"f1": 1.0,
|
| 1856 |
+
"tp": 3,
|
| 1857 |
+
"fp": 0,
|
| 1858 |
+
"fn": 0
|
| 1859 |
+
},
|
| 1860 |
+
"by_label": {
|
| 1861 |
+
"PPSN": {
|
| 1862 |
+
"precision": 1.0,
|
| 1863 |
+
"recall": 1.0,
|
| 1864 |
+
"f1": 1.0,
|
| 1865 |
+
"tp": 3,
|
| 1866 |
+
"fp": 0,
|
| 1867 |
+
"fn": 0
|
| 1868 |
+
}
|
| 1869 |
+
}
|
| 1870 |
+
},
|
| 1871 |
+
"candidate_q8_remaining": {
|
| 1872 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1873 |
+
"input": "eval/irish_remaining_gaps_v2.jsonl",
|
| 1874 |
+
"loader_type": "onnx",
|
| 1875 |
+
"device": "cpu",
|
| 1876 |
+
"examples": 6,
|
| 1877 |
+
"batch_size": 8,
|
| 1878 |
+
"min_score": 0.45,
|
| 1879 |
+
"ppsn_min_score": 0.6,
|
| 1880 |
+
"iou_threshold": 1.0,
|
| 1881 |
+
"ppsn_decoder": "word_aligned",
|
| 1882 |
+
"labels_evaluated": [
|
| 1883 |
+
"PASSPORT_NUMBER",
|
| 1884 |
+
"PHONE_NUMBER"
|
| 1885 |
+
],
|
| 1886 |
+
"elapsed_seconds": 0.142813170037698,
|
| 1887 |
+
"examples_per_second": 42.01293198950906,
|
| 1888 |
+
"overall": {
|
| 1889 |
+
"precision": 0.75,
|
| 1890 |
+
"recall": 0.6,
|
| 1891 |
+
"f1": 0.6666666666666665,
|
| 1892 |
+
"tp": 3,
|
| 1893 |
+
"fp": 1,
|
| 1894 |
+
"fn": 2
|
| 1895 |
+
},
|
| 1896 |
+
"by_label": {
|
| 1897 |
+
"PASSPORT_NUMBER": {
|
| 1898 |
+
"precision": 0.0,
|
| 1899 |
+
"recall": 0.0,
|
| 1900 |
+
"f1": 0.0,
|
| 1901 |
+
"tp": 0,
|
| 1902 |
+
"fp": 1,
|
| 1903 |
+
"fn": 2
|
| 1904 |
+
},
|
| 1905 |
+
"PHONE_NUMBER": {
|
| 1906 |
+
"precision": 1.0,
|
| 1907 |
+
"recall": 1.0,
|
| 1908 |
+
"f1": 1.0,
|
| 1909 |
+
"tp": 3,
|
| 1910 |
+
"fp": 0,
|
| 1911 |
+
"fn": 0
|
| 1912 |
+
}
|
| 1913 |
+
}
|
| 1914 |
+
},
|
| 1915 |
+
"candidate_q8_multilingual": {
|
| 1916 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1917 |
+
"input": "eval/multilingual_ppsn_v1_all.jsonl",
|
| 1918 |
+
"loader_type": "onnx",
|
| 1919 |
+
"device": "cpu",
|
| 1920 |
+
"examples": 168,
|
| 1921 |
+
"batch_size": 16,
|
| 1922 |
+
"ppsn_decoder": "word_aligned",
|
| 1923 |
+
"elapsed_seconds": 0.8803652579663321,
|
| 1924 |
+
"examples_per_second": 190.8298839371338,
|
| 1925 |
+
"label_filter": "PPSN",
|
| 1926 |
+
"overall": {
|
| 1927 |
+
"precision": 0.875,
|
| 1928 |
+
"recall": 1.0,
|
| 1929 |
+
"f1": 0.9333333333333333,
|
| 1930 |
+
"tp": 84,
|
| 1931 |
+
"fp": 12,
|
| 1932 |
+
"fn": 0
|
| 1933 |
+
},
|
| 1934 |
+
"by_domain": {
|
| 1935 |
+
"citizen_chat": {
|
| 1936 |
+
"precision": 0.875,
|
| 1937 |
+
"recall": 1.0,
|
| 1938 |
+
"f1": 0.9333333333333333,
|
| 1939 |
+
"tp": 28,
|
| 1940 |
+
"fp": 4,
|
| 1941 |
+
"fn": 0
|
| 1942 |
+
},
|
| 1943 |
+
"gov_data": {
|
| 1944 |
+
"precision": 0.875,
|
| 1945 |
+
"recall": 1.0,
|
| 1946 |
+
"f1": 0.9333333333333333,
|
| 1947 |
+
"tp": 28,
|
| 1948 |
+
"fp": 4,
|
| 1949 |
+
"fn": 0
|
| 1950 |
+
},
|
| 1951 |
+
"hse_medical": {
|
| 1952 |
+
"precision": 0.875,
|
| 1953 |
+
"recall": 1.0,
|
| 1954 |
+
"f1": 0.9333333333333333,
|
| 1955 |
+
"tp": 28,
|
| 1956 |
+
"fp": 4,
|
| 1957 |
+
"fn": 0
|
| 1958 |
+
}
|
| 1959 |
+
},
|
| 1960 |
+
"by_language": {
|
| 1961 |
+
"de": {
|
| 1962 |
+
"precision": 0.8571428571428571,
|
| 1963 |
+
"recall": 1.0,
|
| 1964 |
+
"f1": 0.923076923076923,
|
| 1965 |
+
"tp": 6,
|
| 1966 |
+
"fp": 1,
|
| 1967 |
+
"fn": 0
|
| 1968 |
+
},
|
| 1969 |
+
"en": {
|
| 1970 |
+
"precision": 1.0,
|
| 1971 |
+
"recall": 1.0,
|
| 1972 |
+
"f1": 1.0,
|
| 1973 |
+
"tp": 6,
|
| 1974 |
+
"fp": 0,
|
| 1975 |
+
"fn": 0
|
| 1976 |
+
},
|
| 1977 |
+
"es": {
|
| 1978 |
+
"precision": 1.0,
|
| 1979 |
+
"recall": 1.0,
|
| 1980 |
+
"f1": 1.0,
|
| 1981 |
+
"tp": 6,
|
| 1982 |
+
"fp": 0,
|
| 1983 |
+
"fn": 0
|
| 1984 |
+
},
|
| 1985 |
+
"fr": {
|
| 1986 |
+
"precision": 1.0,
|
| 1987 |
+
"recall": 1.0,
|
| 1988 |
+
"f1": 1.0,
|
| 1989 |
+
"tp": 6,
|
| 1990 |
+
"fp": 0,
|
| 1991 |
+
"fn": 0
|
| 1992 |
+
},
|
| 1993 |
+
"ga": {
|
| 1994 |
+
"precision": 1.0,
|
| 1995 |
+
"recall": 1.0,
|
| 1996 |
+
"f1": 1.0,
|
| 1997 |
+
"tp": 6,
|
| 1998 |
+
"fp": 0,
|
| 1999 |
+
"fn": 0
|
| 2000 |
+
},
|
| 2001 |
+
"it": {
|
| 2002 |
+
"precision": 1.0,
|
| 2003 |
+
"recall": 1.0,
|
| 2004 |
+
"f1": 1.0,
|
| 2005 |
+
"tp": 6,
|
| 2006 |
+
"fp": 0,
|
| 2007 |
+
"fn": 0
|
| 2008 |
+
},
|
| 2009 |
+
"ja": {
|
| 2010 |
+
"precision": 0.75,
|
| 2011 |
+
"recall": 1.0,
|
| 2012 |
+
"f1": 0.8571428571428571,
|
| 2013 |
+
"tp": 6,
|
| 2014 |
+
"fp": 2,
|
| 2015 |
+
"fn": 0
|
| 2016 |
+
},
|
| 2017 |
+
"nl": {
|
| 2018 |
+
"precision": 1.0,
|
| 2019 |
+
"recall": 1.0,
|
| 2020 |
+
"f1": 1.0,
|
| 2021 |
+
"tp": 6,
|
| 2022 |
+
"fp": 0,
|
| 2023 |
+
"fn": 0
|
| 2024 |
+
},
|
| 2025 |
+
"pl": {
|
| 2026 |
+
"precision": 1.0,
|
| 2027 |
+
"recall": 1.0,
|
| 2028 |
+
"f1": 1.0,
|
| 2029 |
+
"tp": 6,
|
| 2030 |
+
"fp": 0,
|
| 2031 |
+
"fn": 0
|
| 2032 |
+
},
|
| 2033 |
+
"pt": {
|
| 2034 |
+
"precision": 1.0,
|
| 2035 |
+
"recall": 1.0,
|
| 2036 |
+
"f1": 1.0,
|
| 2037 |
+
"tp": 6,
|
| 2038 |
+
"fp": 0,
|
| 2039 |
+
"fn": 0
|
| 2040 |
+
},
|
| 2041 |
+
"ro": {
|
| 2042 |
+
"precision": 1.0,
|
| 2043 |
+
"recall": 1.0,
|
| 2044 |
+
"f1": 1.0,
|
| 2045 |
+
"tp": 6,
|
| 2046 |
+
"fp": 0,
|
| 2047 |
+
"fn": 0
|
| 2048 |
+
},
|
| 2049 |
+
"ru": {
|
| 2050 |
+
"precision": 0.6666666666666666,
|
| 2051 |
+
"recall": 1.0,
|
| 2052 |
+
"f1": 0.8,
|
| 2053 |
+
"tp": 6,
|
| 2054 |
+
"fp": 3,
|
| 2055 |
+
"fn": 0
|
| 2056 |
+
},
|
| 2057 |
+
"uk": {
|
| 2058 |
+
"precision": 0.6666666666666666,
|
| 2059 |
+
"recall": 1.0,
|
| 2060 |
+
"f1": 0.8,
|
| 2061 |
+
"tp": 6,
|
| 2062 |
+
"fp": 3,
|
| 2063 |
+
"fn": 0
|
| 2064 |
+
},
|
| 2065 |
+
"zh": {
|
| 2066 |
+
"precision": 0.6666666666666666,
|
| 2067 |
+
"recall": 1.0,
|
| 2068 |
+
"f1": 0.8,
|
| 2069 |
+
"tp": 6,
|
| 2070 |
+
"fp": 3,
|
| 2071 |
+
"fn": 0
|
| 2072 |
+
}
|
| 2073 |
+
},
|
| 2074 |
+
"onnx_file": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8/model_quantized.onnx"
|
| 2075 |
+
},
|
| 2076 |
+
"q8_recipe_compare": [
|
| 2077 |
+
{
|
| 2078 |
+
"variant": "current_q8",
|
| 2079 |
+
"core_f1": 0.9615384615384615,
|
| 2080 |
+
"core_eps": 119.06137431000792,
|
| 2081 |
+
"edge_f1": 0.9500000000000001,
|
| 2082 |
+
"edge_eps": 69.96690039628702,
|
| 2083 |
+
"numeric_f1": 0.8387096774193549,
|
| 2084 |
+
"numeric_eps": 28.129100872864512,
|
| 2085 |
+
"gap_f1": 0.8333333333333333,
|
| 2086 |
+
"gap_eps": 41.070526382683134,
|
| 2087 |
+
"multilingual_f1": 0.7887323943661972,
|
| 2088 |
+
"multilingual_eps": 86.94930904250197,
|
| 2089 |
+
"remaining_iou1_f1": 0.6,
|
| 2090 |
+
"remaining_iou1_eps": 117.17196092182134
|
| 2091 |
+
},
|
| 2092 |
+
{
|
| 2093 |
+
"variant": "q8_mg",
|
| 2094 |
+
"core_f1": 0.9615384615384615,
|
| 2095 |
+
"core_eps": 62.54552479459656,
|
| 2096 |
+
"edge_f1": 0.9500000000000001,
|
| 2097 |
+
"edge_eps": 100.26464304046029,
|
| 2098 |
+
"numeric_f1": 0.8387096774193549,
|
| 2099 |
+
"numeric_eps": 47.47899731078072,
|
| 2100 |
+
"gap_f1": 0.8333333333333333,
|
| 2101 |
+
"gap_eps": 71.39182685847751,
|
| 2102 |
+
"multilingual_f1": 0.7368421052631579,
|
| 2103 |
+
"multilingual_eps": 162.2228381957003,
|
| 2104 |
+
"remaining_iou1_f1": 0.6,
|
| 2105 |
+
"remaining_iou1_eps": 66.84971455324192
|
| 2106 |
+
},
|
| 2107 |
+
{
|
| 2108 |
+
"variant": "q8_mg_reduce",
|
| 2109 |
+
"core_f1": 0.9554140127388535,
|
| 2110 |
+
"core_eps": 111.07958753347033,
|
| 2111 |
+
"edge_f1": 0.9500000000000001,
|
| 2112 |
+
"edge_eps": 50.58773730012114,
|
| 2113 |
+
"numeric_f1": 0.7878787878787878,
|
| 2114 |
+
"numeric_eps": 42.08249226466411,
|
| 2115 |
+
"gap_f1": 0.7692307692307692,
|
| 2116 |
+
"gap_eps": 112.74792550347136,
|
| 2117 |
+
"multilingual_f1": 0.7336244541484717,
|
| 2118 |
+
"multilingual_eps": 105.25341259054518,
|
| 2119 |
+
"remaining_iou1_f1": 0.4000000000000001,
|
| 2120 |
+
"remaining_iou1_eps": 54.19501381319339
|
| 2121 |
+
}
|
| 2122 |
+
]
|
| 2123 |
+
}
|
eval/benchmark_summary.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Benchmark Summary
|
| 2 |
+
|
| 3 |
+
This release packages a stronger full checkpoint and a stronger bundled ONNX q8 artifact than `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2`.
|
| 4 |
+
|
| 5 |
+
Recommended thresholds:
|
| 6 |
+
|
| 7 |
+
- full checkpoint: `ppsn_min_score = 0.55`, `other_min_score = 0.40`
|
| 8 |
+
- ONNX q8: `ppsn_min_score = 0.60`, `other_min_score = 0.45`
|
| 9 |
+
|
| 10 |
+
## Broader CPU Benchmarks
|
| 11 |
+
|
| 12 |
+
| Variant | User PPSN | Core | Edge | Multilingual PPSN | Strict Remaining IoU=1.0 |
|
| 13 |
+
|---|---:|---:|---:|---:|---:|
|
| 14 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` full | 0.8571 | 0.9554 | 0.9500 | 0.8038 | 0.4000 |
|
| 15 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` full | 1.0000 | 0.9806 | 1.0000 | 0.9333 | 0.4444 |
|
| 16 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` ONNX q8 | 0.8571 | 0.9677 | 0.9500 | 0.8077 | 0.6000 |
|
| 17 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` ONNX q8 | 1.0000 | 0.9677 | 1.0000 | 0.9333 | 0.6667 |
|
| 18 |
+
|
| 19 |
+
## Exact QA Suites
|
| 20 |
+
|
| 21 |
+
| Variant | Numeric v2 | Passport | Routing | Phone | Gap | Passport | Routing | Phone |
|
| 22 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 23 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` full | 0.8966 | 0.9091 | 1.0000 | 0.7500 | 0.8696 | 0.8889 | 1.0000 | 0.6667 |
|
| 24 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` full | 0.9333 | 0.9091 | 1.0000 | 0.8889 | 0.9167 | 0.8889 | 1.0000 | 0.8571 |
|
| 25 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` ONNX q8 | 0.8667 | 0.8333 | 1.0000 | 0.7500 | 0.8696 | 0.8889 | 1.0000 | 0.6667 |
|
| 26 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` ONNX q8 | 0.9333 | 0.9091 | 1.0000 | 0.8889 | 0.9167 | 0.8889 | 1.0000 | 0.8571 |
|
| 27 |
+
|
| 28 |
+
## CPU Throughput
|
| 29 |
+
|
| 30 |
+
| Variant | Core ex/s | Edge ex/s | Multilingual PPSN ex/s |
|
| 31 |
+
|---|---:|---:|---:|
|
| 32 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` full | 58.3521 | 63.1592 | 128.1891 |
|
| 33 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` full | 64.8768 | 62.4612 | 126.4996 |
|
| 34 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2` ONNX q8 | 44.9578 | 45.5786 | 297.5262 |
|
| 35 |
+
| `temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3` ONNX q8 | 44.9398 | 41.7212 | 190.8299 |
|
| 36 |
+
|
| 37 |
+
## Reading These Numbers
|
| 38 |
+
|
| 39 |
+
- The new full checkpoint improves the previous RC on every critical suite measured here.
|
| 40 |
+
- The new ONNX q8 artifact also improves the previous ONNX q8 on every critical suite measured here.
|
| 41 |
+
- The best promoted q8 recipe remains the standard dynamic int8 export used in this repo. Two alternative recipes were tested locally and rejected because they hurt multilingual PPSN quality.
|
| 42 |
+
- The strict exact-span boundary suite is still not solved. The remaining failures are mostly passport values written as `prefix + space + digits`.
|
eval/multilabel_summary.json
ADDED
|
@@ -0,0 +1,1298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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current_release": {
|
| 8 |
+
"core": {
|
| 9 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 10 |
+
"input": "eval/irish_core_pii_v1.jsonl",
|
| 11 |
+
"loader_type": "standard",
|
| 12 |
+
"device": "cpu",
|
| 13 |
+
"examples": 37,
|
| 14 |
+
"batch_size": 8,
|
| 15 |
+
"min_score": 0.35,
|
| 16 |
+
"ppsn_min_score": 0.5,
|
| 17 |
+
"iou_threshold": 0.5,
|
| 18 |
+
"ppsn_decoder": "word_aligned",
|
| 19 |
+
"labels_evaluated": [
|
| 20 |
+
"ACCOUNT_NUMBER",
|
| 21 |
+
"BANK_ROUTING_NUMBER",
|
| 22 |
+
"CREDIT_DEBIT_CARD",
|
| 23 |
+
"EMAIL",
|
| 24 |
+
"FIRST_NAME",
|
| 25 |
+
"LAST_NAME",
|
| 26 |
+
"PASSPORT_NUMBER",
|
| 27 |
+
"PHONE_NUMBER",
|
| 28 |
+
"POSTCODE",
|
| 29 |
+
"PPSN",
|
| 30 |
+
"SWIFT_BIC"
|
| 31 |
+
],
|
| 32 |
+
"elapsed_seconds": 0.6340816880110651,
|
| 33 |
+
"examples_per_second": 58.35210304851814,
|
| 34 |
+
"overall": {
|
| 35 |
+
"precision": 0.9259259259259259,
|
| 36 |
+
"recall": 0.9868421052631579,
|
| 37 |
+
"f1": 0.9554140127388535,
|
| 38 |
+
"tp": 75,
|
| 39 |
+
"fp": 6,
|
| 40 |
+
"fn": 1
|
| 41 |
+
},
|
| 42 |
+
"by_label": {
|
| 43 |
+
"ACCOUNT_NUMBER": {
|
| 44 |
+
"precision": 0.6,
|
| 45 |
+
"recall": 1.0,
|
| 46 |
+
"f1": 0.7499999999999999,
|
| 47 |
+
"tp": 3,
|
| 48 |
+
"fp": 2,
|
| 49 |
+
"fn": 0
|
| 50 |
+
},
|
| 51 |
+
"BANK_ROUTING_NUMBER": {
|
| 52 |
+
"precision": 1.0,
|
| 53 |
+
"recall": 1.0,
|
| 54 |
+
"f1": 1.0,
|
| 55 |
+
"tp": 1,
|
| 56 |
+
"fp": 0,
|
| 57 |
+
"fn": 0
|
| 58 |
+
},
|
| 59 |
+
"CREDIT_DEBIT_CARD": {
|
| 60 |
+
"precision": 1.0,
|
| 61 |
+
"recall": 1.0,
|
| 62 |
+
"f1": 1.0,
|
| 63 |
+
"tp": 2,
|
| 64 |
+
"fp": 0,
|
| 65 |
+
"fn": 0
|
| 66 |
+
},
|
| 67 |
+
"EMAIL": {
|
| 68 |
+
"precision": 1.0,
|
| 69 |
+
"recall": 1.0,
|
| 70 |
+
"f1": 1.0,
|
| 71 |
+
"tp": 6,
|
| 72 |
+
"fp": 0,
|
| 73 |
+
"fn": 0
|
| 74 |
+
},
|
| 75 |
+
"FIRST_NAME": {
|
| 76 |
+
"precision": 1.0,
|
| 77 |
+
"recall": 1.0,
|
| 78 |
+
"f1": 1.0,
|
| 79 |
+
"tp": 19,
|
| 80 |
+
"fp": 0,
|
| 81 |
+
"fn": 0
|
| 82 |
+
},
|
| 83 |
+
"LAST_NAME": {
|
| 84 |
+
"precision": 1.0,
|
| 85 |
+
"recall": 1.0,
|
| 86 |
+
"f1": 1.0,
|
| 87 |
+
"tp": 19,
|
| 88 |
+
"fp": 0,
|
| 89 |
+
"fn": 0
|
| 90 |
+
},
|
| 91 |
+
"PASSPORT_NUMBER": {
|
| 92 |
+
"precision": 0.6666666666666666,
|
| 93 |
+
"recall": 1.0,
|
| 94 |
+
"f1": 0.8,
|
| 95 |
+
"tp": 2,
|
| 96 |
+
"fp": 1,
|
| 97 |
+
"fn": 0
|
| 98 |
+
},
|
| 99 |
+
"PHONE_NUMBER": {
|
| 100 |
+
"precision": 1.0,
|
| 101 |
+
"recall": 1.0,
|
| 102 |
+
"f1": 1.0,
|
| 103 |
+
"tp": 12,
|
| 104 |
+
"fp": 0,
|
| 105 |
+
"fn": 0
|
| 106 |
+
},
|
| 107 |
+
"POSTCODE": {
|
| 108 |
+
"precision": 0.75,
|
| 109 |
+
"recall": 0.75,
|
| 110 |
+
"f1": 0.75,
|
| 111 |
+
"tp": 3,
|
| 112 |
+
"fp": 1,
|
| 113 |
+
"fn": 1
|
| 114 |
+
},
|
| 115 |
+
"PPSN": {
|
| 116 |
+
"precision": 0.75,
|
| 117 |
+
"recall": 1.0,
|
| 118 |
+
"f1": 0.8571428571428571,
|
| 119 |
+
"tp": 6,
|
| 120 |
+
"fp": 2,
|
| 121 |
+
"fn": 0
|
| 122 |
+
},
|
| 123 |
+
"SWIFT_BIC": {
|
| 124 |
+
"precision": 1.0,
|
| 125 |
+
"recall": 1.0,
|
| 126 |
+
"f1": 1.0,
|
| 127 |
+
"tp": 2,
|
| 128 |
+
"fp": 0,
|
| 129 |
+
"fn": 0
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
"edge": {
|
| 134 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 135 |
+
"input": "eval/irish_ppsn_phone_edge_v1.jsonl",
|
| 136 |
+
"loader_type": "standard",
|
| 137 |
+
"device": "cpu",
|
| 138 |
+
"examples": 22,
|
| 139 |
+
"batch_size": 8,
|
| 140 |
+
"min_score": 0.35,
|
| 141 |
+
"ppsn_min_score": 0.5,
|
| 142 |
+
"iou_threshold": 0.5,
|
| 143 |
+
"ppsn_decoder": "word_aligned",
|
| 144 |
+
"labels_evaluated": [
|
| 145 |
+
"PHONE_NUMBER",
|
| 146 |
+
"PPSN"
|
| 147 |
+
],
|
| 148 |
+
"elapsed_seconds": 0.34832625201670453,
|
| 149 |
+
"examples_per_second": 63.15917870854292,
|
| 150 |
+
"overall": {
|
| 151 |
+
"precision": 0.9047619047619048,
|
| 152 |
+
"recall": 1.0,
|
| 153 |
+
"f1": 0.9500000000000001,
|
| 154 |
+
"tp": 19,
|
| 155 |
+
"fp": 2,
|
| 156 |
+
"fn": 0
|
| 157 |
+
},
|
| 158 |
+
"by_label": {
|
| 159 |
+
"PHONE_NUMBER": {
|
| 160 |
+
"precision": 1.0,
|
| 161 |
+
"recall": 1.0,
|
| 162 |
+
"f1": 1.0,
|
| 163 |
+
"tp": 13,
|
| 164 |
+
"fp": 0,
|
| 165 |
+
"fn": 0
|
| 166 |
+
},
|
| 167 |
+
"PPSN": {
|
| 168 |
+
"precision": 0.75,
|
| 169 |
+
"recall": 1.0,
|
| 170 |
+
"f1": 0.8571428571428571,
|
| 171 |
+
"tp": 6,
|
| 172 |
+
"fp": 2,
|
| 173 |
+
"fn": 0
|
| 174 |
+
}
|
| 175 |
+
}
|
| 176 |
+
},
|
| 177 |
+
"numeric_v2": {
|
| 178 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 179 |
+
"input": "eval/irish_numeric_qafix_v2.jsonl",
|
| 180 |
+
"loader_type": "standard",
|
| 181 |
+
"device": "cpu",
|
| 182 |
+
"examples": 19,
|
| 183 |
+
"batch_size": 8,
|
| 184 |
+
"min_score": 0.35,
|
| 185 |
+
"ppsn_min_score": 0.5,
|
| 186 |
+
"iou_threshold": 0.5,
|
| 187 |
+
"ppsn_decoder": "word_aligned",
|
| 188 |
+
"labels_evaluated": [
|
| 189 |
+
"BANK_ROUTING_NUMBER",
|
| 190 |
+
"PASSPORT_NUMBER",
|
| 191 |
+
"PHONE_NUMBER"
|
| 192 |
+
],
|
| 193 |
+
"elapsed_seconds": 0.29271358298137784,
|
| 194 |
+
"examples_per_second": 64.90986788682356,
|
| 195 |
+
"overall": {
|
| 196 |
+
"precision": 0.8666666666666667,
|
| 197 |
+
"recall": 0.9285714285714286,
|
| 198 |
+
"f1": 0.896551724137931,
|
| 199 |
+
"tp": 13,
|
| 200 |
+
"fp": 2,
|
| 201 |
+
"fn": 1
|
| 202 |
+
},
|
| 203 |
+
"by_label": {
|
| 204 |
+
"BANK_ROUTING_NUMBER": {
|
| 205 |
+
"precision": 1.0,
|
| 206 |
+
"recall": 1.0,
|
| 207 |
+
"f1": 1.0,
|
| 208 |
+
"tp": 5,
|
| 209 |
+
"fp": 0,
|
| 210 |
+
"fn": 0
|
| 211 |
+
},
|
| 212 |
+
"PASSPORT_NUMBER": {
|
| 213 |
+
"precision": 0.8333333333333334,
|
| 214 |
+
"recall": 1.0,
|
| 215 |
+
"f1": 0.9090909090909091,
|
| 216 |
+
"tp": 5,
|
| 217 |
+
"fp": 1,
|
| 218 |
+
"fn": 0
|
| 219 |
+
},
|
| 220 |
+
"PHONE_NUMBER": {
|
| 221 |
+
"precision": 0.75,
|
| 222 |
+
"recall": 0.75,
|
| 223 |
+
"f1": 0.75,
|
| 224 |
+
"tp": 3,
|
| 225 |
+
"fp": 1,
|
| 226 |
+
"fn": 1
|
| 227 |
+
}
|
| 228 |
+
}
|
| 229 |
+
},
|
| 230 |
+
"gap_feedback": {
|
| 231 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 232 |
+
"input": "eval/irish_core_gap_feedback_v1.jsonl",
|
| 233 |
+
"loader_type": "standard",
|
| 234 |
+
"device": "cpu",
|
| 235 |
+
"examples": 14,
|
| 236 |
+
"batch_size": 8,
|
| 237 |
+
"min_score": 0.35,
|
| 238 |
+
"ppsn_min_score": 0.5,
|
| 239 |
+
"iou_threshold": 0.5,
|
| 240 |
+
"ppsn_decoder": "word_aligned",
|
| 241 |
+
"labels_evaluated": [
|
| 242 |
+
"BANK_ROUTING_NUMBER",
|
| 243 |
+
"PASSPORT_NUMBER",
|
| 244 |
+
"PHONE_NUMBER"
|
| 245 |
+
],
|
| 246 |
+
"elapsed_seconds": 0.2173796920105815,
|
| 247 |
+
"examples_per_second": 64.40344022255086,
|
| 248 |
+
"overall": {
|
| 249 |
+
"precision": 0.8333333333333334,
|
| 250 |
+
"recall": 0.9090909090909091,
|
| 251 |
+
"f1": 0.8695652173913043,
|
| 252 |
+
"tp": 10,
|
| 253 |
+
"fp": 2,
|
| 254 |
+
"fn": 1
|
| 255 |
+
},
|
| 256 |
+
"by_label": {
|
| 257 |
+
"BANK_ROUTING_NUMBER": {
|
| 258 |
+
"precision": 1.0,
|
| 259 |
+
"recall": 1.0,
|
| 260 |
+
"f1": 1.0,
|
| 261 |
+
"tp": 4,
|
| 262 |
+
"fp": 0,
|
| 263 |
+
"fn": 0
|
| 264 |
+
},
|
| 265 |
+
"PASSPORT_NUMBER": {
|
| 266 |
+
"precision": 0.8,
|
| 267 |
+
"recall": 1.0,
|
| 268 |
+
"f1": 0.888888888888889,
|
| 269 |
+
"tp": 4,
|
| 270 |
+
"fp": 1,
|
| 271 |
+
"fn": 0
|
| 272 |
+
},
|
| 273 |
+
"PHONE_NUMBER": {
|
| 274 |
+
"precision": 0.6666666666666666,
|
| 275 |
+
"recall": 0.6666666666666666,
|
| 276 |
+
"f1": 0.6666666666666666,
|
| 277 |
+
"tp": 2,
|
| 278 |
+
"fp": 1,
|
| 279 |
+
"fn": 1
|
| 280 |
+
}
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"strict_remaining_iou1": {
|
| 284 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 285 |
+
"input": "eval/irish_remaining_gaps_v2.jsonl",
|
| 286 |
+
"loader_type": "standard",
|
| 287 |
+
"device": "cpu",
|
| 288 |
+
"examples": 6,
|
| 289 |
+
"batch_size": 8,
|
| 290 |
+
"min_score": 0.35,
|
| 291 |
+
"ppsn_min_score": 0.5,
|
| 292 |
+
"iou_threshold": 1.0,
|
| 293 |
+
"ppsn_decoder": "word_aligned",
|
| 294 |
+
"labels_evaluated": [
|
| 295 |
+
"PASSPORT_NUMBER",
|
| 296 |
+
"PHONE_NUMBER"
|
| 297 |
+
],
|
| 298 |
+
"elapsed_seconds": 0.10174437699606642,
|
| 299 |
+
"examples_per_second": 58.97131789633906,
|
| 300 |
+
"overall": {
|
| 301 |
+
"precision": 0.4,
|
| 302 |
+
"recall": 0.4,
|
| 303 |
+
"f1": 0.4000000000000001,
|
| 304 |
+
"tp": 2,
|
| 305 |
+
"fp": 3,
|
| 306 |
+
"fn": 3
|
| 307 |
+
},
|
| 308 |
+
"by_label": {
|
| 309 |
+
"PASSPORT_NUMBER": {
|
| 310 |
+
"precision": 0.0,
|
| 311 |
+
"recall": 0.0,
|
| 312 |
+
"f1": 0.0,
|
| 313 |
+
"tp": 0,
|
| 314 |
+
"fp": 2,
|
| 315 |
+
"fn": 2
|
| 316 |
+
},
|
| 317 |
+
"PHONE_NUMBER": {
|
| 318 |
+
"precision": 0.6666666666666666,
|
| 319 |
+
"recall": 0.6666666666666666,
|
| 320 |
+
"f1": 0.6666666666666666,
|
| 321 |
+
"tp": 2,
|
| 322 |
+
"fp": 1,
|
| 323 |
+
"fn": 1
|
| 324 |
+
}
|
| 325 |
+
}
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
"candidate_release": {
|
| 329 |
+
"core": {
|
| 330 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 331 |
+
"input": "eval/irish_core_pii_v1.jsonl",
|
| 332 |
+
"loader_type": "standard",
|
| 333 |
+
"device": "cpu",
|
| 334 |
+
"examples": 37,
|
| 335 |
+
"batch_size": 8,
|
| 336 |
+
"min_score": 0.4,
|
| 337 |
+
"ppsn_min_score": 0.55,
|
| 338 |
+
"iou_threshold": 0.5,
|
| 339 |
+
"ppsn_decoder": "word_aligned",
|
| 340 |
+
"labels_evaluated": [
|
| 341 |
+
"ACCOUNT_NUMBER",
|
| 342 |
+
"BANK_ROUTING_NUMBER",
|
| 343 |
+
"CREDIT_DEBIT_CARD",
|
| 344 |
+
"EMAIL",
|
| 345 |
+
"FIRST_NAME",
|
| 346 |
+
"LAST_NAME",
|
| 347 |
+
"PASSPORT_NUMBER",
|
| 348 |
+
"PHONE_NUMBER",
|
| 349 |
+
"POSTCODE",
|
| 350 |
+
"PPSN",
|
| 351 |
+
"SWIFT_BIC"
|
| 352 |
+
],
|
| 353 |
+
"elapsed_seconds": 0.5703115339856595,
|
| 354 |
+
"examples_per_second": 64.87682221929316,
|
| 355 |
+
"overall": {
|
| 356 |
+
"precision": 0.9620253164556962,
|
| 357 |
+
"recall": 1.0,
|
| 358 |
+
"f1": 0.9806451612903226,
|
| 359 |
+
"tp": 76,
|
| 360 |
+
"fp": 3,
|
| 361 |
+
"fn": 0
|
| 362 |
+
},
|
| 363 |
+
"by_label": {
|
| 364 |
+
"ACCOUNT_NUMBER": {
|
| 365 |
+
"precision": 0.6,
|
| 366 |
+
"recall": 1.0,
|
| 367 |
+
"f1": 0.7499999999999999,
|
| 368 |
+
"tp": 3,
|
| 369 |
+
"fp": 2,
|
| 370 |
+
"fn": 0
|
| 371 |
+
},
|
| 372 |
+
"BANK_ROUTING_NUMBER": {
|
| 373 |
+
"precision": 1.0,
|
| 374 |
+
"recall": 1.0,
|
| 375 |
+
"f1": 1.0,
|
| 376 |
+
"tp": 1,
|
| 377 |
+
"fp": 0,
|
| 378 |
+
"fn": 0
|
| 379 |
+
},
|
| 380 |
+
"CREDIT_DEBIT_CARD": {
|
| 381 |
+
"precision": 1.0,
|
| 382 |
+
"recall": 1.0,
|
| 383 |
+
"f1": 1.0,
|
| 384 |
+
"tp": 2,
|
| 385 |
+
"fp": 0,
|
| 386 |
+
"fn": 0
|
| 387 |
+
},
|
| 388 |
+
"EMAIL": {
|
| 389 |
+
"precision": 1.0,
|
| 390 |
+
"recall": 1.0,
|
| 391 |
+
"f1": 1.0,
|
| 392 |
+
"tp": 6,
|
| 393 |
+
"fp": 0,
|
| 394 |
+
"fn": 0
|
| 395 |
+
},
|
| 396 |
+
"FIRST_NAME": {
|
| 397 |
+
"precision": 1.0,
|
| 398 |
+
"recall": 1.0,
|
| 399 |
+
"f1": 1.0,
|
| 400 |
+
"tp": 19,
|
| 401 |
+
"fp": 0,
|
| 402 |
+
"fn": 0
|
| 403 |
+
},
|
| 404 |
+
"LAST_NAME": {
|
| 405 |
+
"precision": 1.0,
|
| 406 |
+
"recall": 1.0,
|
| 407 |
+
"f1": 1.0,
|
| 408 |
+
"tp": 19,
|
| 409 |
+
"fp": 0,
|
| 410 |
+
"fn": 0
|
| 411 |
+
},
|
| 412 |
+
"PASSPORT_NUMBER": {
|
| 413 |
+
"precision": 1.0,
|
| 414 |
+
"recall": 1.0,
|
| 415 |
+
"f1": 1.0,
|
| 416 |
+
"tp": 2,
|
| 417 |
+
"fp": 0,
|
| 418 |
+
"fn": 0
|
| 419 |
+
},
|
| 420 |
+
"PHONE_NUMBER": {
|
| 421 |
+
"precision": 1.0,
|
| 422 |
+
"recall": 1.0,
|
| 423 |
+
"f1": 1.0,
|
| 424 |
+
"tp": 12,
|
| 425 |
+
"fp": 0,
|
| 426 |
+
"fn": 0
|
| 427 |
+
},
|
| 428 |
+
"POSTCODE": {
|
| 429 |
+
"precision": 1.0,
|
| 430 |
+
"recall": 1.0,
|
| 431 |
+
"f1": 1.0,
|
| 432 |
+
"tp": 4,
|
| 433 |
+
"fp": 0,
|
| 434 |
+
"fn": 0
|
| 435 |
+
},
|
| 436 |
+
"PPSN": {
|
| 437 |
+
"precision": 0.8571428571428571,
|
| 438 |
+
"recall": 1.0,
|
| 439 |
+
"f1": 0.923076923076923,
|
| 440 |
+
"tp": 6,
|
| 441 |
+
"fp": 1,
|
| 442 |
+
"fn": 0
|
| 443 |
+
},
|
| 444 |
+
"SWIFT_BIC": {
|
| 445 |
+
"precision": 1.0,
|
| 446 |
+
"recall": 1.0,
|
| 447 |
+
"f1": 1.0,
|
| 448 |
+
"tp": 2,
|
| 449 |
+
"fp": 0,
|
| 450 |
+
"fn": 0
|
| 451 |
+
}
|
| 452 |
+
}
|
| 453 |
+
},
|
| 454 |
+
"edge": {
|
| 455 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 456 |
+
"input": "eval/irish_ppsn_phone_edge_v1.jsonl",
|
| 457 |
+
"loader_type": "standard",
|
| 458 |
+
"device": "cpu",
|
| 459 |
+
"examples": 22,
|
| 460 |
+
"batch_size": 8,
|
| 461 |
+
"min_score": 0.4,
|
| 462 |
+
"ppsn_min_score": 0.55,
|
| 463 |
+
"iou_threshold": 0.5,
|
| 464 |
+
"ppsn_decoder": "word_aligned",
|
| 465 |
+
"labels_evaluated": [
|
| 466 |
+
"PHONE_NUMBER",
|
| 467 |
+
"PPSN"
|
| 468 |
+
],
|
| 469 |
+
"elapsed_seconds": 0.35221877897856757,
|
| 470 |
+
"examples_per_second": 62.46117842949735,
|
| 471 |
+
"overall": {
|
| 472 |
+
"precision": 1.0,
|
| 473 |
+
"recall": 1.0,
|
| 474 |
+
"f1": 1.0,
|
| 475 |
+
"tp": 19,
|
| 476 |
+
"fp": 0,
|
| 477 |
+
"fn": 0
|
| 478 |
+
},
|
| 479 |
+
"by_label": {
|
| 480 |
+
"PHONE_NUMBER": {
|
| 481 |
+
"precision": 1.0,
|
| 482 |
+
"recall": 1.0,
|
| 483 |
+
"f1": 1.0,
|
| 484 |
+
"tp": 13,
|
| 485 |
+
"fp": 0,
|
| 486 |
+
"fn": 0
|
| 487 |
+
},
|
| 488 |
+
"PPSN": {
|
| 489 |
+
"precision": 1.0,
|
| 490 |
+
"recall": 1.0,
|
| 491 |
+
"f1": 1.0,
|
| 492 |
+
"tp": 6,
|
| 493 |
+
"fp": 0,
|
| 494 |
+
"fn": 0
|
| 495 |
+
}
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"numeric_v2": {
|
| 499 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 500 |
+
"input": "eval/irish_numeric_qafix_v2.jsonl",
|
| 501 |
+
"loader_type": "standard",
|
| 502 |
+
"device": "cpu",
|
| 503 |
+
"examples": 19,
|
| 504 |
+
"batch_size": 8,
|
| 505 |
+
"min_score": 0.4,
|
| 506 |
+
"ppsn_min_score": 0.55,
|
| 507 |
+
"iou_threshold": 0.5,
|
| 508 |
+
"ppsn_decoder": "word_aligned",
|
| 509 |
+
"labels_evaluated": [
|
| 510 |
+
"BANK_ROUTING_NUMBER",
|
| 511 |
+
"PASSPORT_NUMBER",
|
| 512 |
+
"PHONE_NUMBER"
|
| 513 |
+
],
|
| 514 |
+
"elapsed_seconds": 0.2983117959811352,
|
| 515 |
+
"examples_per_second": 63.69174888813827,
|
| 516 |
+
"overall": {
|
| 517 |
+
"precision": 0.875,
|
| 518 |
+
"recall": 1.0,
|
| 519 |
+
"f1": 0.9333333333333333,
|
| 520 |
+
"tp": 14,
|
| 521 |
+
"fp": 2,
|
| 522 |
+
"fn": 0
|
| 523 |
+
},
|
| 524 |
+
"by_label": {
|
| 525 |
+
"BANK_ROUTING_NUMBER": {
|
| 526 |
+
"precision": 1.0,
|
| 527 |
+
"recall": 1.0,
|
| 528 |
+
"f1": 1.0,
|
| 529 |
+
"tp": 5,
|
| 530 |
+
"fp": 0,
|
| 531 |
+
"fn": 0
|
| 532 |
+
},
|
| 533 |
+
"PASSPORT_NUMBER": {
|
| 534 |
+
"precision": 0.8333333333333334,
|
| 535 |
+
"recall": 1.0,
|
| 536 |
+
"f1": 0.9090909090909091,
|
| 537 |
+
"tp": 5,
|
| 538 |
+
"fp": 1,
|
| 539 |
+
"fn": 0
|
| 540 |
+
},
|
| 541 |
+
"PHONE_NUMBER": {
|
| 542 |
+
"precision": 0.8,
|
| 543 |
+
"recall": 1.0,
|
| 544 |
+
"f1": 0.888888888888889,
|
| 545 |
+
"tp": 4,
|
| 546 |
+
"fp": 1,
|
| 547 |
+
"fn": 0
|
| 548 |
+
}
|
| 549 |
+
}
|
| 550 |
+
},
|
| 551 |
+
"gap_feedback": {
|
| 552 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 553 |
+
"input": "eval/irish_core_gap_feedback_v1.jsonl",
|
| 554 |
+
"loader_type": "standard",
|
| 555 |
+
"device": "cpu",
|
| 556 |
+
"examples": 14,
|
| 557 |
+
"batch_size": 8,
|
| 558 |
+
"min_score": 0.4,
|
| 559 |
+
"ppsn_min_score": 0.55,
|
| 560 |
+
"iou_threshold": 0.5,
|
| 561 |
+
"ppsn_decoder": "word_aligned",
|
| 562 |
+
"labels_evaluated": [
|
| 563 |
+
"BANK_ROUTING_NUMBER",
|
| 564 |
+
"PASSPORT_NUMBER",
|
| 565 |
+
"PHONE_NUMBER"
|
| 566 |
+
],
|
| 567 |
+
"elapsed_seconds": 0.229215633997228,
|
| 568 |
+
"examples_per_second": 61.07785824142043,
|
| 569 |
+
"overall": {
|
| 570 |
+
"precision": 0.8461538461538461,
|
| 571 |
+
"recall": 1.0,
|
| 572 |
+
"f1": 0.9166666666666666,
|
| 573 |
+
"tp": 11,
|
| 574 |
+
"fp": 2,
|
| 575 |
+
"fn": 0
|
| 576 |
+
},
|
| 577 |
+
"by_label": {
|
| 578 |
+
"BANK_ROUTING_NUMBER": {
|
| 579 |
+
"precision": 1.0,
|
| 580 |
+
"recall": 1.0,
|
| 581 |
+
"f1": 1.0,
|
| 582 |
+
"tp": 4,
|
| 583 |
+
"fp": 0,
|
| 584 |
+
"fn": 0
|
| 585 |
+
},
|
| 586 |
+
"PASSPORT_NUMBER": {
|
| 587 |
+
"precision": 0.8,
|
| 588 |
+
"recall": 1.0,
|
| 589 |
+
"f1": 0.888888888888889,
|
| 590 |
+
"tp": 4,
|
| 591 |
+
"fp": 1,
|
| 592 |
+
"fn": 0
|
| 593 |
+
},
|
| 594 |
+
"PHONE_NUMBER": {
|
| 595 |
+
"precision": 0.75,
|
| 596 |
+
"recall": 1.0,
|
| 597 |
+
"f1": 0.8571428571428571,
|
| 598 |
+
"tp": 3,
|
| 599 |
+
"fp": 1,
|
| 600 |
+
"fn": 0
|
| 601 |
+
}
|
| 602 |
+
}
|
| 603 |
+
},
|
| 604 |
+
"strict_remaining_iou1": {
|
| 605 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 606 |
+
"input": "eval/irish_remaining_gaps_v2.jsonl",
|
| 607 |
+
"loader_type": "standard",
|
| 608 |
+
"device": "cpu",
|
| 609 |
+
"examples": 6,
|
| 610 |
+
"batch_size": 8,
|
| 611 |
+
"min_score": 0.4,
|
| 612 |
+
"ppsn_min_score": 0.55,
|
| 613 |
+
"iou_threshold": 1.0,
|
| 614 |
+
"ppsn_decoder": "word_aligned",
|
| 615 |
+
"labels_evaluated": [
|
| 616 |
+
"PASSPORT_NUMBER",
|
| 617 |
+
"PHONE_NUMBER"
|
| 618 |
+
],
|
| 619 |
+
"elapsed_seconds": 0.09866602800320834,
|
| 620 |
+
"examples_per_second": 60.8112044381162,
|
| 621 |
+
"overall": {
|
| 622 |
+
"precision": 0.5,
|
| 623 |
+
"recall": 0.4,
|
| 624 |
+
"f1": 0.4444444444444445,
|
| 625 |
+
"tp": 2,
|
| 626 |
+
"fp": 2,
|
| 627 |
+
"fn": 3
|
| 628 |
+
},
|
| 629 |
+
"by_label": {
|
| 630 |
+
"PASSPORT_NUMBER": {
|
| 631 |
+
"precision": 0.0,
|
| 632 |
+
"recall": 0.0,
|
| 633 |
+
"f1": 0.0,
|
| 634 |
+
"tp": 0,
|
| 635 |
+
"fp": 1,
|
| 636 |
+
"fn": 2
|
| 637 |
+
},
|
| 638 |
+
"PHONE_NUMBER": {
|
| 639 |
+
"precision": 0.6666666666666666,
|
| 640 |
+
"recall": 0.6666666666666666,
|
| 641 |
+
"f1": 0.6666666666666666,
|
| 642 |
+
"tp": 2,
|
| 643 |
+
"fp": 1,
|
| 644 |
+
"fn": 1
|
| 645 |
+
}
|
| 646 |
+
}
|
| 647 |
+
}
|
| 648 |
+
}
|
| 649 |
+
},
|
| 650 |
+
"onnx_q8": {
|
| 651 |
+
"recommended_thresholds": {
|
| 652 |
+
"other_min_score": 0.45,
|
| 653 |
+
"ppsn_min_score": 0.6
|
| 654 |
+
},
|
| 655 |
+
"current_release": {
|
| 656 |
+
"core": {
|
| 657 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 658 |
+
"input": "eval/irish_core_pii_v1.jsonl",
|
| 659 |
+
"loader_type": "onnx",
|
| 660 |
+
"device": "cpu",
|
| 661 |
+
"examples": 37,
|
| 662 |
+
"batch_size": 8,
|
| 663 |
+
"min_score": 0.45,
|
| 664 |
+
"ppsn_min_score": 0.6,
|
| 665 |
+
"iou_threshold": 0.5,
|
| 666 |
+
"ppsn_decoder": "word_aligned",
|
| 667 |
+
"labels_evaluated": [
|
| 668 |
+
"ACCOUNT_NUMBER",
|
| 669 |
+
"BANK_ROUTING_NUMBER",
|
| 670 |
+
"CREDIT_DEBIT_CARD",
|
| 671 |
+
"EMAIL",
|
| 672 |
+
"FIRST_NAME",
|
| 673 |
+
"LAST_NAME",
|
| 674 |
+
"PASSPORT_NUMBER",
|
| 675 |
+
"PHONE_NUMBER",
|
| 676 |
+
"POSTCODE",
|
| 677 |
+
"PPSN",
|
| 678 |
+
"SWIFT_BIC"
|
| 679 |
+
],
|
| 680 |
+
"elapsed_seconds": 0.8229939279844984,
|
| 681 |
+
"examples_per_second": 44.957804355388774,
|
| 682 |
+
"overall": {
|
| 683 |
+
"precision": 0.9493670886075949,
|
| 684 |
+
"recall": 0.9868421052631579,
|
| 685 |
+
"f1": 0.967741935483871,
|
| 686 |
+
"tp": 75,
|
| 687 |
+
"fp": 4,
|
| 688 |
+
"fn": 1
|
| 689 |
+
},
|
| 690 |
+
"by_label": {
|
| 691 |
+
"ACCOUNT_NUMBER": {
|
| 692 |
+
"precision": 0.6,
|
| 693 |
+
"recall": 1.0,
|
| 694 |
+
"f1": 0.7499999999999999,
|
| 695 |
+
"tp": 3,
|
| 696 |
+
"fp": 2,
|
| 697 |
+
"fn": 0
|
| 698 |
+
},
|
| 699 |
+
"BANK_ROUTING_NUMBER": {
|
| 700 |
+
"precision": 1.0,
|
| 701 |
+
"recall": 1.0,
|
| 702 |
+
"f1": 1.0,
|
| 703 |
+
"tp": 1,
|
| 704 |
+
"fp": 0,
|
| 705 |
+
"fn": 0
|
| 706 |
+
},
|
| 707 |
+
"CREDIT_DEBIT_CARD": {
|
| 708 |
+
"precision": 1.0,
|
| 709 |
+
"recall": 1.0,
|
| 710 |
+
"f1": 1.0,
|
| 711 |
+
"tp": 2,
|
| 712 |
+
"fp": 0,
|
| 713 |
+
"fn": 0
|
| 714 |
+
},
|
| 715 |
+
"EMAIL": {
|
| 716 |
+
"precision": 1.0,
|
| 717 |
+
"recall": 1.0,
|
| 718 |
+
"f1": 1.0,
|
| 719 |
+
"tp": 6,
|
| 720 |
+
"fp": 0,
|
| 721 |
+
"fn": 0
|
| 722 |
+
},
|
| 723 |
+
"FIRST_NAME": {
|
| 724 |
+
"precision": 1.0,
|
| 725 |
+
"recall": 1.0,
|
| 726 |
+
"f1": 1.0,
|
| 727 |
+
"tp": 19,
|
| 728 |
+
"fp": 0,
|
| 729 |
+
"fn": 0
|
| 730 |
+
},
|
| 731 |
+
"LAST_NAME": {
|
| 732 |
+
"precision": 1.0,
|
| 733 |
+
"recall": 1.0,
|
| 734 |
+
"f1": 1.0,
|
| 735 |
+
"tp": 19,
|
| 736 |
+
"fp": 0,
|
| 737 |
+
"fn": 0
|
| 738 |
+
},
|
| 739 |
+
"PASSPORT_NUMBER": {
|
| 740 |
+
"precision": 1.0,
|
| 741 |
+
"recall": 1.0,
|
| 742 |
+
"f1": 1.0,
|
| 743 |
+
"tp": 2,
|
| 744 |
+
"fp": 0,
|
| 745 |
+
"fn": 0
|
| 746 |
+
},
|
| 747 |
+
"PHONE_NUMBER": {
|
| 748 |
+
"precision": 1.0,
|
| 749 |
+
"recall": 1.0,
|
| 750 |
+
"f1": 1.0,
|
| 751 |
+
"tp": 12,
|
| 752 |
+
"fp": 0,
|
| 753 |
+
"fn": 0
|
| 754 |
+
},
|
| 755 |
+
"POSTCODE": {
|
| 756 |
+
"precision": 1.0,
|
| 757 |
+
"recall": 0.75,
|
| 758 |
+
"f1": 0.8571428571428571,
|
| 759 |
+
"tp": 3,
|
| 760 |
+
"fp": 0,
|
| 761 |
+
"fn": 1
|
| 762 |
+
},
|
| 763 |
+
"PPSN": {
|
| 764 |
+
"precision": 0.75,
|
| 765 |
+
"recall": 1.0,
|
| 766 |
+
"f1": 0.8571428571428571,
|
| 767 |
+
"tp": 6,
|
| 768 |
+
"fp": 2,
|
| 769 |
+
"fn": 0
|
| 770 |
+
},
|
| 771 |
+
"SWIFT_BIC": {
|
| 772 |
+
"precision": 1.0,
|
| 773 |
+
"recall": 1.0,
|
| 774 |
+
"f1": 1.0,
|
| 775 |
+
"tp": 2,
|
| 776 |
+
"fp": 0,
|
| 777 |
+
"fn": 0
|
| 778 |
+
}
|
| 779 |
+
}
|
| 780 |
+
},
|
| 781 |
+
"edge": {
|
| 782 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 783 |
+
"input": "eval/irish_ppsn_phone_edge_v1.jsonl",
|
| 784 |
+
"loader_type": "onnx",
|
| 785 |
+
"device": "cpu",
|
| 786 |
+
"examples": 22,
|
| 787 |
+
"batch_size": 8,
|
| 788 |
+
"min_score": 0.45,
|
| 789 |
+
"ppsn_min_score": 0.6,
|
| 790 |
+
"iou_threshold": 0.5,
|
| 791 |
+
"ppsn_decoder": "word_aligned",
|
| 792 |
+
"labels_evaluated": [
|
| 793 |
+
"PHONE_NUMBER",
|
| 794 |
+
"PPSN"
|
| 795 |
+
],
|
| 796 |
+
"elapsed_seconds": 0.4826828690129332,
|
| 797 |
+
"examples_per_second": 45.57858049735451,
|
| 798 |
+
"overall": {
|
| 799 |
+
"precision": 0.9047619047619048,
|
| 800 |
+
"recall": 1.0,
|
| 801 |
+
"f1": 0.9500000000000001,
|
| 802 |
+
"tp": 19,
|
| 803 |
+
"fp": 2,
|
| 804 |
+
"fn": 0
|
| 805 |
+
},
|
| 806 |
+
"by_label": {
|
| 807 |
+
"PHONE_NUMBER": {
|
| 808 |
+
"precision": 1.0,
|
| 809 |
+
"recall": 1.0,
|
| 810 |
+
"f1": 1.0,
|
| 811 |
+
"tp": 13,
|
| 812 |
+
"fp": 0,
|
| 813 |
+
"fn": 0
|
| 814 |
+
},
|
| 815 |
+
"PPSN": {
|
| 816 |
+
"precision": 0.75,
|
| 817 |
+
"recall": 1.0,
|
| 818 |
+
"f1": 0.8571428571428571,
|
| 819 |
+
"tp": 6,
|
| 820 |
+
"fp": 2,
|
| 821 |
+
"fn": 0
|
| 822 |
+
}
|
| 823 |
+
}
|
| 824 |
+
},
|
| 825 |
+
"numeric_v2": {
|
| 826 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 827 |
+
"input": "eval/irish_numeric_qafix_v2.jsonl",
|
| 828 |
+
"loader_type": "onnx",
|
| 829 |
+
"device": "cpu",
|
| 830 |
+
"examples": 19,
|
| 831 |
+
"batch_size": 8,
|
| 832 |
+
"min_score": 0.45,
|
| 833 |
+
"ppsn_min_score": 0.6,
|
| 834 |
+
"iou_threshold": 0.5,
|
| 835 |
+
"ppsn_decoder": "word_aligned",
|
| 836 |
+
"labels_evaluated": [
|
| 837 |
+
"BANK_ROUTING_NUMBER",
|
| 838 |
+
"PASSPORT_NUMBER",
|
| 839 |
+
"PHONE_NUMBER"
|
| 840 |
+
],
|
| 841 |
+
"elapsed_seconds": 0.48927704500965774,
|
| 842 |
+
"examples_per_second": 38.8328048368281,
|
| 843 |
+
"overall": {
|
| 844 |
+
"precision": 0.8125,
|
| 845 |
+
"recall": 0.9285714285714286,
|
| 846 |
+
"f1": 0.8666666666666666,
|
| 847 |
+
"tp": 13,
|
| 848 |
+
"fp": 3,
|
| 849 |
+
"fn": 1
|
| 850 |
+
},
|
| 851 |
+
"by_label": {
|
| 852 |
+
"BANK_ROUTING_NUMBER": {
|
| 853 |
+
"precision": 1.0,
|
| 854 |
+
"recall": 1.0,
|
| 855 |
+
"f1": 1.0,
|
| 856 |
+
"tp": 5,
|
| 857 |
+
"fp": 0,
|
| 858 |
+
"fn": 0
|
| 859 |
+
},
|
| 860 |
+
"PASSPORT_NUMBER": {
|
| 861 |
+
"precision": 0.7142857142857143,
|
| 862 |
+
"recall": 1.0,
|
| 863 |
+
"f1": 0.8333333333333333,
|
| 864 |
+
"tp": 5,
|
| 865 |
+
"fp": 2,
|
| 866 |
+
"fn": 0
|
| 867 |
+
},
|
| 868 |
+
"PHONE_NUMBER": {
|
| 869 |
+
"precision": 0.75,
|
| 870 |
+
"recall": 0.75,
|
| 871 |
+
"f1": 0.75,
|
| 872 |
+
"tp": 3,
|
| 873 |
+
"fp": 1,
|
| 874 |
+
"fn": 1
|
| 875 |
+
}
|
| 876 |
+
}
|
| 877 |
+
},
|
| 878 |
+
"gap_feedback": {
|
| 879 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 880 |
+
"input": "eval/irish_core_gap_feedback_v1.jsonl",
|
| 881 |
+
"loader_type": "onnx",
|
| 882 |
+
"device": "cpu",
|
| 883 |
+
"examples": 14,
|
| 884 |
+
"batch_size": 8,
|
| 885 |
+
"min_score": 0.45,
|
| 886 |
+
"ppsn_min_score": 0.6,
|
| 887 |
+
"iou_threshold": 0.5,
|
| 888 |
+
"ppsn_decoder": "word_aligned",
|
| 889 |
+
"labels_evaluated": [
|
| 890 |
+
"BANK_ROUTING_NUMBER",
|
| 891 |
+
"PASSPORT_NUMBER",
|
| 892 |
+
"PHONE_NUMBER"
|
| 893 |
+
],
|
| 894 |
+
"elapsed_seconds": 0.25282940798206255,
|
| 895 |
+
"examples_per_second": 55.37330531183009,
|
| 896 |
+
"overall": {
|
| 897 |
+
"precision": 0.8333333333333334,
|
| 898 |
+
"recall": 0.9090909090909091,
|
| 899 |
+
"f1": 0.8695652173913043,
|
| 900 |
+
"tp": 10,
|
| 901 |
+
"fp": 2,
|
| 902 |
+
"fn": 1
|
| 903 |
+
},
|
| 904 |
+
"by_label": {
|
| 905 |
+
"BANK_ROUTING_NUMBER": {
|
| 906 |
+
"precision": 1.0,
|
| 907 |
+
"recall": 1.0,
|
| 908 |
+
"f1": 1.0,
|
| 909 |
+
"tp": 4,
|
| 910 |
+
"fp": 0,
|
| 911 |
+
"fn": 0
|
| 912 |
+
},
|
| 913 |
+
"PASSPORT_NUMBER": {
|
| 914 |
+
"precision": 0.8,
|
| 915 |
+
"recall": 1.0,
|
| 916 |
+
"f1": 0.888888888888889,
|
| 917 |
+
"tp": 4,
|
| 918 |
+
"fp": 1,
|
| 919 |
+
"fn": 0
|
| 920 |
+
},
|
| 921 |
+
"PHONE_NUMBER": {
|
| 922 |
+
"precision": 0.6666666666666666,
|
| 923 |
+
"recall": 0.6666666666666666,
|
| 924 |
+
"f1": 0.6666666666666666,
|
| 925 |
+
"tp": 2,
|
| 926 |
+
"fp": 1,
|
| 927 |
+
"fn": 1
|
| 928 |
+
}
|
| 929 |
+
}
|
| 930 |
+
},
|
| 931 |
+
"strict_remaining_iou1": {
|
| 932 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 933 |
+
"input": "eval/irish_remaining_gaps_v2.jsonl",
|
| 934 |
+
"loader_type": "onnx",
|
| 935 |
+
"device": "cpu",
|
| 936 |
+
"examples": 6,
|
| 937 |
+
"batch_size": 8,
|
| 938 |
+
"min_score": 0.45,
|
| 939 |
+
"ppsn_min_score": 0.6,
|
| 940 |
+
"iou_threshold": 1.0,
|
| 941 |
+
"ppsn_decoder": "word_aligned",
|
| 942 |
+
"labels_evaluated": [
|
| 943 |
+
"PASSPORT_NUMBER",
|
| 944 |
+
"PHONE_NUMBER"
|
| 945 |
+
],
|
| 946 |
+
"elapsed_seconds": 0.1308825800078921,
|
| 947 |
+
"examples_per_second": 45.84261709723483,
|
| 948 |
+
"overall": {
|
| 949 |
+
"precision": 0.6,
|
| 950 |
+
"recall": 0.6,
|
| 951 |
+
"f1": 0.6,
|
| 952 |
+
"tp": 3,
|
| 953 |
+
"fp": 2,
|
| 954 |
+
"fn": 2
|
| 955 |
+
},
|
| 956 |
+
"by_label": {
|
| 957 |
+
"PASSPORT_NUMBER": {
|
| 958 |
+
"precision": 0.0,
|
| 959 |
+
"recall": 0.0,
|
| 960 |
+
"f1": 0.0,
|
| 961 |
+
"tp": 0,
|
| 962 |
+
"fp": 2,
|
| 963 |
+
"fn": 2
|
| 964 |
+
},
|
| 965 |
+
"PHONE_NUMBER": {
|
| 966 |
+
"precision": 1.0,
|
| 967 |
+
"recall": 1.0,
|
| 968 |
+
"f1": 1.0,
|
| 969 |
+
"tp": 3,
|
| 970 |
+
"fp": 0,
|
| 971 |
+
"fn": 0
|
| 972 |
+
}
|
| 973 |
+
}
|
| 974 |
+
}
|
| 975 |
+
},
|
| 976 |
+
"candidate_release": {
|
| 977 |
+
"core": {
|
| 978 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 979 |
+
"input": "eval/irish_core_pii_v1.jsonl",
|
| 980 |
+
"loader_type": "onnx",
|
| 981 |
+
"device": "cpu",
|
| 982 |
+
"examples": 37,
|
| 983 |
+
"batch_size": 8,
|
| 984 |
+
"min_score": 0.45,
|
| 985 |
+
"ppsn_min_score": 0.6,
|
| 986 |
+
"iou_threshold": 0.5,
|
| 987 |
+
"ppsn_decoder": "word_aligned",
|
| 988 |
+
"labels_evaluated": [
|
| 989 |
+
"ACCOUNT_NUMBER",
|
| 990 |
+
"BANK_ROUTING_NUMBER",
|
| 991 |
+
"CREDIT_DEBIT_CARD",
|
| 992 |
+
"EMAIL",
|
| 993 |
+
"FIRST_NAME",
|
| 994 |
+
"LAST_NAME",
|
| 995 |
+
"PASSPORT_NUMBER",
|
| 996 |
+
"PHONE_NUMBER",
|
| 997 |
+
"POSTCODE",
|
| 998 |
+
"PPSN",
|
| 999 |
+
"SWIFT_BIC"
|
| 1000 |
+
],
|
| 1001 |
+
"elapsed_seconds": 0.8233243200229481,
|
| 1002 |
+
"examples_per_second": 44.93976322595295,
|
| 1003 |
+
"overall": {
|
| 1004 |
+
"precision": 0.9493670886075949,
|
| 1005 |
+
"recall": 0.9868421052631579,
|
| 1006 |
+
"f1": 0.967741935483871,
|
| 1007 |
+
"tp": 75,
|
| 1008 |
+
"fp": 4,
|
| 1009 |
+
"fn": 1
|
| 1010 |
+
},
|
| 1011 |
+
"by_label": {
|
| 1012 |
+
"ACCOUNT_NUMBER": {
|
| 1013 |
+
"precision": 0.6,
|
| 1014 |
+
"recall": 1.0,
|
| 1015 |
+
"f1": 0.7499999999999999,
|
| 1016 |
+
"tp": 3,
|
| 1017 |
+
"fp": 2,
|
| 1018 |
+
"fn": 0
|
| 1019 |
+
},
|
| 1020 |
+
"BANK_ROUTING_NUMBER": {
|
| 1021 |
+
"precision": 1.0,
|
| 1022 |
+
"recall": 1.0,
|
| 1023 |
+
"f1": 1.0,
|
| 1024 |
+
"tp": 1,
|
| 1025 |
+
"fp": 0,
|
| 1026 |
+
"fn": 0
|
| 1027 |
+
},
|
| 1028 |
+
"CREDIT_DEBIT_CARD": {
|
| 1029 |
+
"precision": 1.0,
|
| 1030 |
+
"recall": 1.0,
|
| 1031 |
+
"f1": 1.0,
|
| 1032 |
+
"tp": 2,
|
| 1033 |
+
"fp": 0,
|
| 1034 |
+
"fn": 0
|
| 1035 |
+
},
|
| 1036 |
+
"EMAIL": {
|
| 1037 |
+
"precision": 1.0,
|
| 1038 |
+
"recall": 1.0,
|
| 1039 |
+
"f1": 1.0,
|
| 1040 |
+
"tp": 6,
|
| 1041 |
+
"fp": 0,
|
| 1042 |
+
"fn": 0
|
| 1043 |
+
},
|
| 1044 |
+
"FIRST_NAME": {
|
| 1045 |
+
"precision": 1.0,
|
| 1046 |
+
"recall": 1.0,
|
| 1047 |
+
"f1": 1.0,
|
| 1048 |
+
"tp": 19,
|
| 1049 |
+
"fp": 0,
|
| 1050 |
+
"fn": 0
|
| 1051 |
+
},
|
| 1052 |
+
"LAST_NAME": {
|
| 1053 |
+
"precision": 1.0,
|
| 1054 |
+
"recall": 1.0,
|
| 1055 |
+
"f1": 1.0,
|
| 1056 |
+
"tp": 19,
|
| 1057 |
+
"fp": 0,
|
| 1058 |
+
"fn": 0
|
| 1059 |
+
},
|
| 1060 |
+
"PASSPORT_NUMBER": {
|
| 1061 |
+
"precision": 1.0,
|
| 1062 |
+
"recall": 1.0,
|
| 1063 |
+
"f1": 1.0,
|
| 1064 |
+
"tp": 2,
|
| 1065 |
+
"fp": 0,
|
| 1066 |
+
"fn": 0
|
| 1067 |
+
},
|
| 1068 |
+
"PHONE_NUMBER": {
|
| 1069 |
+
"precision": 1.0,
|
| 1070 |
+
"recall": 1.0,
|
| 1071 |
+
"f1": 1.0,
|
| 1072 |
+
"tp": 12,
|
| 1073 |
+
"fp": 0,
|
| 1074 |
+
"fn": 0
|
| 1075 |
+
},
|
| 1076 |
+
"POSTCODE": {
|
| 1077 |
+
"precision": 0.75,
|
| 1078 |
+
"recall": 0.75,
|
| 1079 |
+
"f1": 0.75,
|
| 1080 |
+
"tp": 3,
|
| 1081 |
+
"fp": 1,
|
| 1082 |
+
"fn": 1
|
| 1083 |
+
},
|
| 1084 |
+
"PPSN": {
|
| 1085 |
+
"precision": 0.8571428571428571,
|
| 1086 |
+
"recall": 1.0,
|
| 1087 |
+
"f1": 0.923076923076923,
|
| 1088 |
+
"tp": 6,
|
| 1089 |
+
"fp": 1,
|
| 1090 |
+
"fn": 0
|
| 1091 |
+
},
|
| 1092 |
+
"SWIFT_BIC": {
|
| 1093 |
+
"precision": 1.0,
|
| 1094 |
+
"recall": 1.0,
|
| 1095 |
+
"f1": 1.0,
|
| 1096 |
+
"tp": 2,
|
| 1097 |
+
"fp": 0,
|
| 1098 |
+
"fn": 0
|
| 1099 |
+
}
|
| 1100 |
+
}
|
| 1101 |
+
},
|
| 1102 |
+
"edge": {
|
| 1103 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1104 |
+
"input": "eval/irish_ppsn_phone_edge_v1.jsonl",
|
| 1105 |
+
"loader_type": "onnx",
|
| 1106 |
+
"device": "cpu",
|
| 1107 |
+
"examples": 22,
|
| 1108 |
+
"batch_size": 8,
|
| 1109 |
+
"min_score": 0.45,
|
| 1110 |
+
"ppsn_min_score": 0.6,
|
| 1111 |
+
"iou_threshold": 0.5,
|
| 1112 |
+
"ppsn_decoder": "word_aligned",
|
| 1113 |
+
"labels_evaluated": [
|
| 1114 |
+
"PHONE_NUMBER",
|
| 1115 |
+
"PPSN"
|
| 1116 |
+
],
|
| 1117 |
+
"elapsed_seconds": 0.5273098170291632,
|
| 1118 |
+
"examples_per_second": 41.72120315139757,
|
| 1119 |
+
"overall": {
|
| 1120 |
+
"precision": 1.0,
|
| 1121 |
+
"recall": 1.0,
|
| 1122 |
+
"f1": 1.0,
|
| 1123 |
+
"tp": 19,
|
| 1124 |
+
"fp": 0,
|
| 1125 |
+
"fn": 0
|
| 1126 |
+
},
|
| 1127 |
+
"by_label": {
|
| 1128 |
+
"PHONE_NUMBER": {
|
| 1129 |
+
"precision": 1.0,
|
| 1130 |
+
"recall": 1.0,
|
| 1131 |
+
"f1": 1.0,
|
| 1132 |
+
"tp": 13,
|
| 1133 |
+
"fp": 0,
|
| 1134 |
+
"fn": 0
|
| 1135 |
+
},
|
| 1136 |
+
"PPSN": {
|
| 1137 |
+
"precision": 1.0,
|
| 1138 |
+
"recall": 1.0,
|
| 1139 |
+
"f1": 1.0,
|
| 1140 |
+
"tp": 6,
|
| 1141 |
+
"fp": 0,
|
| 1142 |
+
"fn": 0
|
| 1143 |
+
}
|
| 1144 |
+
}
|
| 1145 |
+
},
|
| 1146 |
+
"numeric_v2": {
|
| 1147 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1148 |
+
"input": "eval/irish_numeric_qafix_v2.jsonl",
|
| 1149 |
+
"loader_type": "onnx",
|
| 1150 |
+
"device": "cpu",
|
| 1151 |
+
"examples": 19,
|
| 1152 |
+
"batch_size": 8,
|
| 1153 |
+
"min_score": 0.45,
|
| 1154 |
+
"ppsn_min_score": 0.6,
|
| 1155 |
+
"iou_threshold": 0.5,
|
| 1156 |
+
"ppsn_decoder": "word_aligned",
|
| 1157 |
+
"labels_evaluated": [
|
| 1158 |
+
"BANK_ROUTING_NUMBER",
|
| 1159 |
+
"PASSPORT_NUMBER",
|
| 1160 |
+
"PHONE_NUMBER"
|
| 1161 |
+
],
|
| 1162 |
+
"elapsed_seconds": 0.3350751459947787,
|
| 1163 |
+
"examples_per_second": 56.70369834083745,
|
| 1164 |
+
"overall": {
|
| 1165 |
+
"precision": 0.875,
|
| 1166 |
+
"recall": 1.0,
|
| 1167 |
+
"f1": 0.9333333333333333,
|
| 1168 |
+
"tp": 14,
|
| 1169 |
+
"fp": 2,
|
| 1170 |
+
"fn": 0
|
| 1171 |
+
},
|
| 1172 |
+
"by_label": {
|
| 1173 |
+
"BANK_ROUTING_NUMBER": {
|
| 1174 |
+
"precision": 1.0,
|
| 1175 |
+
"recall": 1.0,
|
| 1176 |
+
"f1": 1.0,
|
| 1177 |
+
"tp": 5,
|
| 1178 |
+
"fp": 0,
|
| 1179 |
+
"fn": 0
|
| 1180 |
+
},
|
| 1181 |
+
"PASSPORT_NUMBER": {
|
| 1182 |
+
"precision": 0.8333333333333334,
|
| 1183 |
+
"recall": 1.0,
|
| 1184 |
+
"f1": 0.9090909090909091,
|
| 1185 |
+
"tp": 5,
|
| 1186 |
+
"fp": 1,
|
| 1187 |
+
"fn": 0
|
| 1188 |
+
},
|
| 1189 |
+
"PHONE_NUMBER": {
|
| 1190 |
+
"precision": 0.8,
|
| 1191 |
+
"recall": 1.0,
|
| 1192 |
+
"f1": 0.888888888888889,
|
| 1193 |
+
"tp": 4,
|
| 1194 |
+
"fp": 1,
|
| 1195 |
+
"fn": 0
|
| 1196 |
+
}
|
| 1197 |
+
}
|
| 1198 |
+
},
|
| 1199 |
+
"gap_feedback": {
|
| 1200 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1201 |
+
"input": "eval/irish_core_gap_feedback_v1.jsonl",
|
| 1202 |
+
"loader_type": "onnx",
|
| 1203 |
+
"device": "cpu",
|
| 1204 |
+
"examples": 14,
|
| 1205 |
+
"batch_size": 8,
|
| 1206 |
+
"min_score": 0.45,
|
| 1207 |
+
"ppsn_min_score": 0.6,
|
| 1208 |
+
"iou_threshold": 0.5,
|
| 1209 |
+
"ppsn_decoder": "word_aligned",
|
| 1210 |
+
"labels_evaluated": [
|
| 1211 |
+
"BANK_ROUTING_NUMBER",
|
| 1212 |
+
"PASSPORT_NUMBER",
|
| 1213 |
+
"PHONE_NUMBER"
|
| 1214 |
+
],
|
| 1215 |
+
"elapsed_seconds": 0.1985326989670284,
|
| 1216 |
+
"examples_per_second": 70.51735090915713,
|
| 1217 |
+
"overall": {
|
| 1218 |
+
"precision": 0.8461538461538461,
|
| 1219 |
+
"recall": 1.0,
|
| 1220 |
+
"f1": 0.9166666666666666,
|
| 1221 |
+
"tp": 11,
|
| 1222 |
+
"fp": 2,
|
| 1223 |
+
"fn": 0
|
| 1224 |
+
},
|
| 1225 |
+
"by_label": {
|
| 1226 |
+
"BANK_ROUTING_NUMBER": {
|
| 1227 |
+
"precision": 1.0,
|
| 1228 |
+
"recall": 1.0,
|
| 1229 |
+
"f1": 1.0,
|
| 1230 |
+
"tp": 4,
|
| 1231 |
+
"fp": 0,
|
| 1232 |
+
"fn": 0
|
| 1233 |
+
},
|
| 1234 |
+
"PASSPORT_NUMBER": {
|
| 1235 |
+
"precision": 0.8,
|
| 1236 |
+
"recall": 1.0,
|
| 1237 |
+
"f1": 0.888888888888889,
|
| 1238 |
+
"tp": 4,
|
| 1239 |
+
"fp": 1,
|
| 1240 |
+
"fn": 0
|
| 1241 |
+
},
|
| 1242 |
+
"PHONE_NUMBER": {
|
| 1243 |
+
"precision": 0.75,
|
| 1244 |
+
"recall": 1.0,
|
| 1245 |
+
"f1": 0.8571428571428571,
|
| 1246 |
+
"tp": 3,
|
| 1247 |
+
"fp": 1,
|
| 1248 |
+
"fn": 0
|
| 1249 |
+
}
|
| 1250 |
+
}
|
| 1251 |
+
},
|
| 1252 |
+
"strict_remaining_iou1": {
|
| 1253 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 1254 |
+
"input": "eval/irish_remaining_gaps_v2.jsonl",
|
| 1255 |
+
"loader_type": "onnx",
|
| 1256 |
+
"device": "cpu",
|
| 1257 |
+
"examples": 6,
|
| 1258 |
+
"batch_size": 8,
|
| 1259 |
+
"min_score": 0.45,
|
| 1260 |
+
"ppsn_min_score": 0.6,
|
| 1261 |
+
"iou_threshold": 1.0,
|
| 1262 |
+
"ppsn_decoder": "word_aligned",
|
| 1263 |
+
"labels_evaluated": [
|
| 1264 |
+
"PASSPORT_NUMBER",
|
| 1265 |
+
"PHONE_NUMBER"
|
| 1266 |
+
],
|
| 1267 |
+
"elapsed_seconds": 0.142813170037698,
|
| 1268 |
+
"examples_per_second": 42.01293198950906,
|
| 1269 |
+
"overall": {
|
| 1270 |
+
"precision": 0.75,
|
| 1271 |
+
"recall": 0.6,
|
| 1272 |
+
"f1": 0.6666666666666665,
|
| 1273 |
+
"tp": 3,
|
| 1274 |
+
"fp": 1,
|
| 1275 |
+
"fn": 2
|
| 1276 |
+
},
|
| 1277 |
+
"by_label": {
|
| 1278 |
+
"PASSPORT_NUMBER": {
|
| 1279 |
+
"precision": 0.0,
|
| 1280 |
+
"recall": 0.0,
|
| 1281 |
+
"f1": 0.0,
|
| 1282 |
+
"tp": 0,
|
| 1283 |
+
"fp": 1,
|
| 1284 |
+
"fn": 2
|
| 1285 |
+
},
|
| 1286 |
+
"PHONE_NUMBER": {
|
| 1287 |
+
"precision": 1.0,
|
| 1288 |
+
"recall": 1.0,
|
| 1289 |
+
"f1": 1.0,
|
| 1290 |
+
"tp": 3,
|
| 1291 |
+
"fp": 0,
|
| 1292 |
+
"fn": 0
|
| 1293 |
+
}
|
| 1294 |
+
}
|
| 1295 |
+
}
|
| 1296 |
+
}
|
| 1297 |
+
}
|
| 1298 |
+
}
|
eval/ppsn_only_summary.json
ADDED
|
@@ -0,0 +1,812 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"full": {
|
| 3 |
+
"current_release": {
|
| 4 |
+
"user": {
|
| 5 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 6 |
+
"input": "eval/user_raw_regression_cases_v1.jsonl",
|
| 7 |
+
"loader_type": "standard",
|
| 8 |
+
"device": "cpu",
|
| 9 |
+
"examples": 7,
|
| 10 |
+
"batch_size": 8,
|
| 11 |
+
"min_score": 0.35,
|
| 12 |
+
"ppsn_min_score": 0.5,
|
| 13 |
+
"iou_threshold": 0.5,
|
| 14 |
+
"ppsn_decoder": "word_aligned",
|
| 15 |
+
"labels_evaluated": [
|
| 16 |
+
"PPSN"
|
| 17 |
+
],
|
| 18 |
+
"elapsed_seconds": 0.11388953996356577,
|
| 19 |
+
"examples_per_second": 61.46306326497903,
|
| 20 |
+
"overall": {
|
| 21 |
+
"precision": 0.75,
|
| 22 |
+
"recall": 1.0,
|
| 23 |
+
"f1": 0.8571428571428571,
|
| 24 |
+
"tp": 3,
|
| 25 |
+
"fp": 1,
|
| 26 |
+
"fn": 0
|
| 27 |
+
},
|
| 28 |
+
"by_label": {
|
| 29 |
+
"PHONE_NUMBER": {
|
| 30 |
+
"precision": 0.0,
|
| 31 |
+
"recall": 0.0,
|
| 32 |
+
"f1": 0.0,
|
| 33 |
+
"tp": 0,
|
| 34 |
+
"fp": 1,
|
| 35 |
+
"fn": 0
|
| 36 |
+
},
|
| 37 |
+
"PPSN": {
|
| 38 |
+
"precision": 1.0,
|
| 39 |
+
"recall": 1.0,
|
| 40 |
+
"f1": 1.0,
|
| 41 |
+
"tp": 3,
|
| 42 |
+
"fp": 0,
|
| 43 |
+
"fn": 0
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
"multilingual": {
|
| 48 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 49 |
+
"input": "eval/multilingual_ppsn_v1_all.jsonl",
|
| 50 |
+
"loader_type": "standard",
|
| 51 |
+
"device": "cpu",
|
| 52 |
+
"examples": 168,
|
| 53 |
+
"batch_size": 16,
|
| 54 |
+
"ppsn_decoder": "word_aligned",
|
| 55 |
+
"elapsed_seconds": 1.310564298008103,
|
| 56 |
+
"examples_per_second": 128.18905585581678,
|
| 57 |
+
"label_filter": "PPSN",
|
| 58 |
+
"overall": {
|
| 59 |
+
"precision": 0.672,
|
| 60 |
+
"recall": 1.0,
|
| 61 |
+
"f1": 0.8038277511961722,
|
| 62 |
+
"tp": 84,
|
| 63 |
+
"fp": 41,
|
| 64 |
+
"fn": 0
|
| 65 |
+
},
|
| 66 |
+
"by_domain": {
|
| 67 |
+
"citizen_chat": {
|
| 68 |
+
"precision": 0.6511627906976745,
|
| 69 |
+
"recall": 1.0,
|
| 70 |
+
"f1": 0.7887323943661972,
|
| 71 |
+
"tp": 28,
|
| 72 |
+
"fp": 15,
|
| 73 |
+
"fn": 0
|
| 74 |
+
},
|
| 75 |
+
"gov_data": {
|
| 76 |
+
"precision": 0.7,
|
| 77 |
+
"recall": 1.0,
|
| 78 |
+
"f1": 0.8235294117647058,
|
| 79 |
+
"tp": 28,
|
| 80 |
+
"fp": 12,
|
| 81 |
+
"fn": 0
|
| 82 |
+
},
|
| 83 |
+
"hse_medical": {
|
| 84 |
+
"precision": 0.6666666666666666,
|
| 85 |
+
"recall": 1.0,
|
| 86 |
+
"f1": 0.8,
|
| 87 |
+
"tp": 28,
|
| 88 |
+
"fp": 14,
|
| 89 |
+
"fn": 0
|
| 90 |
+
}
|
| 91 |
+
},
|
| 92 |
+
"by_language": {
|
| 93 |
+
"de": {
|
| 94 |
+
"precision": 0.6666666666666666,
|
| 95 |
+
"recall": 1.0,
|
| 96 |
+
"f1": 0.8,
|
| 97 |
+
"tp": 6,
|
| 98 |
+
"fp": 3,
|
| 99 |
+
"fn": 0
|
| 100 |
+
},
|
| 101 |
+
"en": {
|
| 102 |
+
"precision": 0.75,
|
| 103 |
+
"recall": 1.0,
|
| 104 |
+
"f1": 0.8571428571428571,
|
| 105 |
+
"tp": 6,
|
| 106 |
+
"fp": 2,
|
| 107 |
+
"fn": 0
|
| 108 |
+
},
|
| 109 |
+
"es": {
|
| 110 |
+
"precision": 0.75,
|
| 111 |
+
"recall": 1.0,
|
| 112 |
+
"f1": 0.8571428571428571,
|
| 113 |
+
"tp": 6,
|
| 114 |
+
"fp": 2,
|
| 115 |
+
"fn": 0
|
| 116 |
+
},
|
| 117 |
+
"fr": {
|
| 118 |
+
"precision": 0.8571428571428571,
|
| 119 |
+
"recall": 1.0,
|
| 120 |
+
"f1": 0.923076923076923,
|
| 121 |
+
"tp": 6,
|
| 122 |
+
"fp": 1,
|
| 123 |
+
"fn": 0
|
| 124 |
+
},
|
| 125 |
+
"ga": {
|
| 126 |
+
"precision": 0.5,
|
| 127 |
+
"recall": 1.0,
|
| 128 |
+
"f1": 0.6666666666666666,
|
| 129 |
+
"tp": 6,
|
| 130 |
+
"fp": 6,
|
| 131 |
+
"fn": 0
|
| 132 |
+
},
|
| 133 |
+
"it": {
|
| 134 |
+
"precision": 0.6,
|
| 135 |
+
"recall": 1.0,
|
| 136 |
+
"f1": 0.7499999999999999,
|
| 137 |
+
"tp": 6,
|
| 138 |
+
"fp": 4,
|
| 139 |
+
"fn": 0
|
| 140 |
+
},
|
| 141 |
+
"ja": {
|
| 142 |
+
"precision": 0.6666666666666666,
|
| 143 |
+
"recall": 1.0,
|
| 144 |
+
"f1": 0.8,
|
| 145 |
+
"tp": 6,
|
| 146 |
+
"fp": 3,
|
| 147 |
+
"fn": 0
|
| 148 |
+
},
|
| 149 |
+
"nl": {
|
| 150 |
+
"precision": 0.6666666666666666,
|
| 151 |
+
"recall": 1.0,
|
| 152 |
+
"f1": 0.8,
|
| 153 |
+
"tp": 6,
|
| 154 |
+
"fp": 3,
|
| 155 |
+
"fn": 0
|
| 156 |
+
},
|
| 157 |
+
"pl": {
|
| 158 |
+
"precision": 0.75,
|
| 159 |
+
"recall": 1.0,
|
| 160 |
+
"f1": 0.8571428571428571,
|
| 161 |
+
"tp": 6,
|
| 162 |
+
"fp": 2,
|
| 163 |
+
"fn": 0
|
| 164 |
+
},
|
| 165 |
+
"pt": {
|
| 166 |
+
"precision": 0.75,
|
| 167 |
+
"recall": 1.0,
|
| 168 |
+
"f1": 0.8571428571428571,
|
| 169 |
+
"tp": 6,
|
| 170 |
+
"fp": 2,
|
| 171 |
+
"fn": 0
|
| 172 |
+
},
|
| 173 |
+
"ro": {
|
| 174 |
+
"precision": 0.6,
|
| 175 |
+
"recall": 1.0,
|
| 176 |
+
"f1": 0.7499999999999999,
|
| 177 |
+
"tp": 6,
|
| 178 |
+
"fp": 4,
|
| 179 |
+
"fn": 0
|
| 180 |
+
},
|
| 181 |
+
"ru": {
|
| 182 |
+
"precision": 0.6666666666666666,
|
| 183 |
+
"recall": 1.0,
|
| 184 |
+
"f1": 0.8,
|
| 185 |
+
"tp": 6,
|
| 186 |
+
"fp": 3,
|
| 187 |
+
"fn": 0
|
| 188 |
+
},
|
| 189 |
+
"uk": {
|
| 190 |
+
"precision": 0.6666666666666666,
|
| 191 |
+
"recall": 1.0,
|
| 192 |
+
"f1": 0.8,
|
| 193 |
+
"tp": 6,
|
| 194 |
+
"fp": 3,
|
| 195 |
+
"fn": 0
|
| 196 |
+
},
|
| 197 |
+
"zh": {
|
| 198 |
+
"precision": 0.6666666666666666,
|
| 199 |
+
"recall": 1.0,
|
| 200 |
+
"f1": 0.8,
|
| 201 |
+
"tp": 6,
|
| 202 |
+
"fp": 3,
|
| 203 |
+
"fn": 0
|
| 204 |
+
}
|
| 205 |
+
}
|
| 206 |
+
}
|
| 207 |
+
},
|
| 208 |
+
"candidate_release": {
|
| 209 |
+
"user": {
|
| 210 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 211 |
+
"input": "eval/user_raw_regression_cases_v1.jsonl",
|
| 212 |
+
"loader_type": "standard",
|
| 213 |
+
"device": "cpu",
|
| 214 |
+
"examples": 7,
|
| 215 |
+
"batch_size": 8,
|
| 216 |
+
"min_score": 0.4,
|
| 217 |
+
"ppsn_min_score": 0.55,
|
| 218 |
+
"iou_threshold": 0.5,
|
| 219 |
+
"ppsn_decoder": "word_aligned",
|
| 220 |
+
"labels_evaluated": [
|
| 221 |
+
"PPSN"
|
| 222 |
+
],
|
| 223 |
+
"elapsed_seconds": 0.11162209301255643,
|
| 224 |
+
"examples_per_second": 62.711599568488346,
|
| 225 |
+
"overall": {
|
| 226 |
+
"precision": 1.0,
|
| 227 |
+
"recall": 1.0,
|
| 228 |
+
"f1": 1.0,
|
| 229 |
+
"tp": 3,
|
| 230 |
+
"fp": 0,
|
| 231 |
+
"fn": 0
|
| 232 |
+
},
|
| 233 |
+
"by_label": {
|
| 234 |
+
"PPSN": {
|
| 235 |
+
"precision": 1.0,
|
| 236 |
+
"recall": 1.0,
|
| 237 |
+
"f1": 1.0,
|
| 238 |
+
"tp": 3,
|
| 239 |
+
"fp": 0,
|
| 240 |
+
"fn": 0
|
| 241 |
+
}
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"multilingual": {
|
| 245 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 246 |
+
"input": "eval/multilingual_ppsn_v1_all.jsonl",
|
| 247 |
+
"loader_type": "standard",
|
| 248 |
+
"device": "cpu",
|
| 249 |
+
"examples": 168,
|
| 250 |
+
"batch_size": 16,
|
| 251 |
+
"ppsn_decoder": "word_aligned",
|
| 252 |
+
"elapsed_seconds": 1.3280671570100822,
|
| 253 |
+
"examples_per_second": 126.49962700547727,
|
| 254 |
+
"label_filter": "PPSN",
|
| 255 |
+
"overall": {
|
| 256 |
+
"precision": 0.875,
|
| 257 |
+
"recall": 1.0,
|
| 258 |
+
"f1": 0.9333333333333333,
|
| 259 |
+
"tp": 84,
|
| 260 |
+
"fp": 12,
|
| 261 |
+
"fn": 0
|
| 262 |
+
},
|
| 263 |
+
"by_domain": {
|
| 264 |
+
"citizen_chat": {
|
| 265 |
+
"precision": 0.875,
|
| 266 |
+
"recall": 1.0,
|
| 267 |
+
"f1": 0.9333333333333333,
|
| 268 |
+
"tp": 28,
|
| 269 |
+
"fp": 4,
|
| 270 |
+
"fn": 0
|
| 271 |
+
},
|
| 272 |
+
"gov_data": {
|
| 273 |
+
"precision": 0.875,
|
| 274 |
+
"recall": 1.0,
|
| 275 |
+
"f1": 0.9333333333333333,
|
| 276 |
+
"tp": 28,
|
| 277 |
+
"fp": 4,
|
| 278 |
+
"fn": 0
|
| 279 |
+
},
|
| 280 |
+
"hse_medical": {
|
| 281 |
+
"precision": 0.875,
|
| 282 |
+
"recall": 1.0,
|
| 283 |
+
"f1": 0.9333333333333333,
|
| 284 |
+
"tp": 28,
|
| 285 |
+
"fp": 4,
|
| 286 |
+
"fn": 0
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
"by_language": {
|
| 290 |
+
"de": {
|
| 291 |
+
"precision": 1.0,
|
| 292 |
+
"recall": 1.0,
|
| 293 |
+
"f1": 1.0,
|
| 294 |
+
"tp": 6,
|
| 295 |
+
"fp": 0,
|
| 296 |
+
"fn": 0
|
| 297 |
+
},
|
| 298 |
+
"en": {
|
| 299 |
+
"precision": 1.0,
|
| 300 |
+
"recall": 1.0,
|
| 301 |
+
"f1": 1.0,
|
| 302 |
+
"tp": 6,
|
| 303 |
+
"fp": 0,
|
| 304 |
+
"fn": 0
|
| 305 |
+
},
|
| 306 |
+
"es": {
|
| 307 |
+
"precision": 1.0,
|
| 308 |
+
"recall": 1.0,
|
| 309 |
+
"f1": 1.0,
|
| 310 |
+
"tp": 6,
|
| 311 |
+
"fp": 0,
|
| 312 |
+
"fn": 0
|
| 313 |
+
},
|
| 314 |
+
"fr": {
|
| 315 |
+
"precision": 1.0,
|
| 316 |
+
"recall": 1.0,
|
| 317 |
+
"f1": 1.0,
|
| 318 |
+
"tp": 6,
|
| 319 |
+
"fp": 0,
|
| 320 |
+
"fn": 0
|
| 321 |
+
},
|
| 322 |
+
"ga": {
|
| 323 |
+
"precision": 1.0,
|
| 324 |
+
"recall": 1.0,
|
| 325 |
+
"f1": 1.0,
|
| 326 |
+
"tp": 6,
|
| 327 |
+
"fp": 0,
|
| 328 |
+
"fn": 0
|
| 329 |
+
},
|
| 330 |
+
"it": {
|
| 331 |
+
"precision": 1.0,
|
| 332 |
+
"recall": 1.0,
|
| 333 |
+
"f1": 1.0,
|
| 334 |
+
"tp": 6,
|
| 335 |
+
"fp": 0,
|
| 336 |
+
"fn": 0
|
| 337 |
+
},
|
| 338 |
+
"ja": {
|
| 339 |
+
"precision": 0.6666666666666666,
|
| 340 |
+
"recall": 1.0,
|
| 341 |
+
"f1": 0.8,
|
| 342 |
+
"tp": 6,
|
| 343 |
+
"fp": 3,
|
| 344 |
+
"fn": 0
|
| 345 |
+
},
|
| 346 |
+
"nl": {
|
| 347 |
+
"precision": 1.0,
|
| 348 |
+
"recall": 1.0,
|
| 349 |
+
"f1": 1.0,
|
| 350 |
+
"tp": 6,
|
| 351 |
+
"fp": 0,
|
| 352 |
+
"fn": 0
|
| 353 |
+
},
|
| 354 |
+
"pl": {
|
| 355 |
+
"precision": 1.0,
|
| 356 |
+
"recall": 1.0,
|
| 357 |
+
"f1": 1.0,
|
| 358 |
+
"tp": 6,
|
| 359 |
+
"fp": 0,
|
| 360 |
+
"fn": 0
|
| 361 |
+
},
|
| 362 |
+
"pt": {
|
| 363 |
+
"precision": 1.0,
|
| 364 |
+
"recall": 1.0,
|
| 365 |
+
"f1": 1.0,
|
| 366 |
+
"tp": 6,
|
| 367 |
+
"fp": 0,
|
| 368 |
+
"fn": 0
|
| 369 |
+
},
|
| 370 |
+
"ro": {
|
| 371 |
+
"precision": 1.0,
|
| 372 |
+
"recall": 1.0,
|
| 373 |
+
"f1": 1.0,
|
| 374 |
+
"tp": 6,
|
| 375 |
+
"fp": 0,
|
| 376 |
+
"fn": 0
|
| 377 |
+
},
|
| 378 |
+
"ru": {
|
| 379 |
+
"precision": 0.6666666666666666,
|
| 380 |
+
"recall": 1.0,
|
| 381 |
+
"f1": 0.8,
|
| 382 |
+
"tp": 6,
|
| 383 |
+
"fp": 3,
|
| 384 |
+
"fn": 0
|
| 385 |
+
},
|
| 386 |
+
"uk": {
|
| 387 |
+
"precision": 0.6666666666666666,
|
| 388 |
+
"recall": 1.0,
|
| 389 |
+
"f1": 0.8,
|
| 390 |
+
"tp": 6,
|
| 391 |
+
"fp": 3,
|
| 392 |
+
"fn": 0
|
| 393 |
+
},
|
| 394 |
+
"zh": {
|
| 395 |
+
"precision": 0.6666666666666666,
|
| 396 |
+
"recall": 1.0,
|
| 397 |
+
"f1": 0.8,
|
| 398 |
+
"tp": 6,
|
| 399 |
+
"fp": 3,
|
| 400 |
+
"fn": 0
|
| 401 |
+
}
|
| 402 |
+
}
|
| 403 |
+
}
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
"onnx_q8": {
|
| 407 |
+
"current_release": {
|
| 408 |
+
"user": {
|
| 409 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 410 |
+
"input": "eval/user_raw_regression_cases_v1.jsonl",
|
| 411 |
+
"loader_type": "onnx",
|
| 412 |
+
"device": "cpu",
|
| 413 |
+
"examples": 7,
|
| 414 |
+
"batch_size": 8,
|
| 415 |
+
"min_score": 0.45,
|
| 416 |
+
"ppsn_min_score": 0.6,
|
| 417 |
+
"iou_threshold": 0.5,
|
| 418 |
+
"ppsn_decoder": "word_aligned",
|
| 419 |
+
"labels_evaluated": [
|
| 420 |
+
"PPSN"
|
| 421 |
+
],
|
| 422 |
+
"elapsed_seconds": 0.15658493799855933,
|
| 423 |
+
"examples_per_second": 44.70417199427192,
|
| 424 |
+
"overall": {
|
| 425 |
+
"precision": 0.75,
|
| 426 |
+
"recall": 1.0,
|
| 427 |
+
"f1": 0.8571428571428571,
|
| 428 |
+
"tp": 3,
|
| 429 |
+
"fp": 1,
|
| 430 |
+
"fn": 0
|
| 431 |
+
},
|
| 432 |
+
"by_label": {
|
| 433 |
+
"PHONE_NUMBER": {
|
| 434 |
+
"precision": 0.0,
|
| 435 |
+
"recall": 0.0,
|
| 436 |
+
"f1": 0.0,
|
| 437 |
+
"tp": 0,
|
| 438 |
+
"fp": 1,
|
| 439 |
+
"fn": 0
|
| 440 |
+
},
|
| 441 |
+
"PPSN": {
|
| 442 |
+
"precision": 1.0,
|
| 443 |
+
"recall": 1.0,
|
| 444 |
+
"f1": 1.0,
|
| 445 |
+
"tp": 3,
|
| 446 |
+
"fp": 0,
|
| 447 |
+
"fn": 0
|
| 448 |
+
}
|
| 449 |
+
}
|
| 450 |
+
},
|
| 451 |
+
"multilingual": {
|
| 452 |
+
"model": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8",
|
| 453 |
+
"input": "eval/multilingual_ppsn_v1_all.jsonl",
|
| 454 |
+
"loader_type": "onnx",
|
| 455 |
+
"device": "cpu",
|
| 456 |
+
"examples": 168,
|
| 457 |
+
"batch_size": 16,
|
| 458 |
+
"ppsn_decoder": "word_aligned",
|
| 459 |
+
"elapsed_seconds": 0.5646560749737546,
|
| 460 |
+
"examples_per_second": 297.5262419833324,
|
| 461 |
+
"label_filter": "PPSN",
|
| 462 |
+
"overall": {
|
| 463 |
+
"precision": 0.6774193548387096,
|
| 464 |
+
"recall": 1.0,
|
| 465 |
+
"f1": 0.8076923076923077,
|
| 466 |
+
"tp": 84,
|
| 467 |
+
"fp": 40,
|
| 468 |
+
"fn": 0
|
| 469 |
+
},
|
| 470 |
+
"by_domain": {
|
| 471 |
+
"citizen_chat": {
|
| 472 |
+
"precision": 0.6666666666666666,
|
| 473 |
+
"recall": 1.0,
|
| 474 |
+
"f1": 0.8,
|
| 475 |
+
"tp": 28,
|
| 476 |
+
"fp": 14,
|
| 477 |
+
"fn": 0
|
| 478 |
+
},
|
| 479 |
+
"gov_data": {
|
| 480 |
+
"precision": 0.6829268292682927,
|
| 481 |
+
"recall": 1.0,
|
| 482 |
+
"f1": 0.8115942028985507,
|
| 483 |
+
"tp": 28,
|
| 484 |
+
"fp": 13,
|
| 485 |
+
"fn": 0
|
| 486 |
+
},
|
| 487 |
+
"hse_medical": {
|
| 488 |
+
"precision": 0.6829268292682927,
|
| 489 |
+
"recall": 1.0,
|
| 490 |
+
"f1": 0.8115942028985507,
|
| 491 |
+
"tp": 28,
|
| 492 |
+
"fp": 13,
|
| 493 |
+
"fn": 0
|
| 494 |
+
}
|
| 495 |
+
},
|
| 496 |
+
"by_language": {
|
| 497 |
+
"de": {
|
| 498 |
+
"precision": 0.6666666666666666,
|
| 499 |
+
"recall": 1.0,
|
| 500 |
+
"f1": 0.8,
|
| 501 |
+
"tp": 6,
|
| 502 |
+
"fp": 3,
|
| 503 |
+
"fn": 0
|
| 504 |
+
},
|
| 505 |
+
"en": {
|
| 506 |
+
"precision": 0.75,
|
| 507 |
+
"recall": 1.0,
|
| 508 |
+
"f1": 0.8571428571428571,
|
| 509 |
+
"tp": 6,
|
| 510 |
+
"fp": 2,
|
| 511 |
+
"fn": 0
|
| 512 |
+
},
|
| 513 |
+
"es": {
|
| 514 |
+
"precision": 0.75,
|
| 515 |
+
"recall": 1.0,
|
| 516 |
+
"f1": 0.8571428571428571,
|
| 517 |
+
"tp": 6,
|
| 518 |
+
"fp": 2,
|
| 519 |
+
"fn": 0
|
| 520 |
+
},
|
| 521 |
+
"fr": {
|
| 522 |
+
"precision": 0.8571428571428571,
|
| 523 |
+
"recall": 1.0,
|
| 524 |
+
"f1": 0.923076923076923,
|
| 525 |
+
"tp": 6,
|
| 526 |
+
"fp": 1,
|
| 527 |
+
"fn": 0
|
| 528 |
+
},
|
| 529 |
+
"ga": {
|
| 530 |
+
"precision": 0.5454545454545454,
|
| 531 |
+
"recall": 1.0,
|
| 532 |
+
"f1": 0.7058823529411764,
|
| 533 |
+
"tp": 6,
|
| 534 |
+
"fp": 5,
|
| 535 |
+
"fn": 0
|
| 536 |
+
},
|
| 537 |
+
"it": {
|
| 538 |
+
"precision": 0.6666666666666666,
|
| 539 |
+
"recall": 1.0,
|
| 540 |
+
"f1": 0.8,
|
| 541 |
+
"tp": 6,
|
| 542 |
+
"fp": 3,
|
| 543 |
+
"fn": 0
|
| 544 |
+
},
|
| 545 |
+
"ja": {
|
| 546 |
+
"precision": 0.6,
|
| 547 |
+
"recall": 1.0,
|
| 548 |
+
"f1": 0.7499999999999999,
|
| 549 |
+
"tp": 6,
|
| 550 |
+
"fp": 4,
|
| 551 |
+
"fn": 0
|
| 552 |
+
},
|
| 553 |
+
"nl": {
|
| 554 |
+
"precision": 0.6666666666666666,
|
| 555 |
+
"recall": 1.0,
|
| 556 |
+
"f1": 0.8,
|
| 557 |
+
"tp": 6,
|
| 558 |
+
"fp": 3,
|
| 559 |
+
"fn": 0
|
| 560 |
+
},
|
| 561 |
+
"pl": {
|
| 562 |
+
"precision": 0.75,
|
| 563 |
+
"recall": 1.0,
|
| 564 |
+
"f1": 0.8571428571428571,
|
| 565 |
+
"tp": 6,
|
| 566 |
+
"fp": 2,
|
| 567 |
+
"fn": 0
|
| 568 |
+
},
|
| 569 |
+
"pt": {
|
| 570 |
+
"precision": 0.75,
|
| 571 |
+
"recall": 1.0,
|
| 572 |
+
"f1": 0.8571428571428571,
|
| 573 |
+
"tp": 6,
|
| 574 |
+
"fp": 2,
|
| 575 |
+
"fn": 0
|
| 576 |
+
},
|
| 577 |
+
"ro": {
|
| 578 |
+
"precision": 0.6666666666666666,
|
| 579 |
+
"recall": 1.0,
|
| 580 |
+
"f1": 0.8,
|
| 581 |
+
"tp": 6,
|
| 582 |
+
"fp": 3,
|
| 583 |
+
"fn": 0
|
| 584 |
+
},
|
| 585 |
+
"ru": {
|
| 586 |
+
"precision": 0.6666666666666666,
|
| 587 |
+
"recall": 1.0,
|
| 588 |
+
"f1": 0.8,
|
| 589 |
+
"tp": 6,
|
| 590 |
+
"fp": 3,
|
| 591 |
+
"fn": 0
|
| 592 |
+
},
|
| 593 |
+
"uk": {
|
| 594 |
+
"precision": 0.6666666666666666,
|
| 595 |
+
"recall": 1.0,
|
| 596 |
+
"f1": 0.8,
|
| 597 |
+
"tp": 6,
|
| 598 |
+
"fp": 3,
|
| 599 |
+
"fn": 0
|
| 600 |
+
},
|
| 601 |
+
"zh": {
|
| 602 |
+
"precision": 0.6,
|
| 603 |
+
"recall": 1.0,
|
| 604 |
+
"f1": 0.7499999999999999,
|
| 605 |
+
"tp": 6,
|
| 606 |
+
"fp": 4,
|
| 607 |
+
"fn": 0
|
| 608 |
+
}
|
| 609 |
+
},
|
| 610 |
+
"onnx_file": "models/openmed-mliteclinical-irish-core-v17_full_s180_onnx_q8/model_quantized.onnx"
|
| 611 |
+
}
|
| 612 |
+
},
|
| 613 |
+
"candidate_release": {
|
| 614 |
+
"user": {
|
| 615 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 616 |
+
"input": "eval/user_raw_regression_cases_v1.jsonl",
|
| 617 |
+
"loader_type": "onnx",
|
| 618 |
+
"device": "cpu",
|
| 619 |
+
"examples": 7,
|
| 620 |
+
"batch_size": 8,
|
| 621 |
+
"min_score": 0.45,
|
| 622 |
+
"ppsn_min_score": 0.6,
|
| 623 |
+
"iou_threshold": 0.5,
|
| 624 |
+
"ppsn_decoder": "word_aligned",
|
| 625 |
+
"labels_evaluated": [
|
| 626 |
+
"PPSN"
|
| 627 |
+
],
|
| 628 |
+
"elapsed_seconds": 0.13422382500721142,
|
| 629 |
+
"examples_per_second": 52.1516951228585,
|
| 630 |
+
"overall": {
|
| 631 |
+
"precision": 1.0,
|
| 632 |
+
"recall": 1.0,
|
| 633 |
+
"f1": 1.0,
|
| 634 |
+
"tp": 3,
|
| 635 |
+
"fp": 0,
|
| 636 |
+
"fn": 0
|
| 637 |
+
},
|
| 638 |
+
"by_label": {
|
| 639 |
+
"PPSN": {
|
| 640 |
+
"precision": 1.0,
|
| 641 |
+
"recall": 1.0,
|
| 642 |
+
"f1": 1.0,
|
| 643 |
+
"tp": 3,
|
| 644 |
+
"fp": 0,
|
| 645 |
+
"fn": 0
|
| 646 |
+
}
|
| 647 |
+
}
|
| 648 |
+
},
|
| 649 |
+
"multilingual": {
|
| 650 |
+
"model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8",
|
| 651 |
+
"input": "eval/multilingual_ppsn_v1_all.jsonl",
|
| 652 |
+
"loader_type": "onnx",
|
| 653 |
+
"device": "cpu",
|
| 654 |
+
"examples": 168,
|
| 655 |
+
"batch_size": 16,
|
| 656 |
+
"ppsn_decoder": "word_aligned",
|
| 657 |
+
"elapsed_seconds": 0.8803652579663321,
|
| 658 |
+
"examples_per_second": 190.8298839371338,
|
| 659 |
+
"label_filter": "PPSN",
|
| 660 |
+
"overall": {
|
| 661 |
+
"precision": 0.875,
|
| 662 |
+
"recall": 1.0,
|
| 663 |
+
"f1": 0.9333333333333333,
|
| 664 |
+
"tp": 84,
|
| 665 |
+
"fp": 12,
|
| 666 |
+
"fn": 0
|
| 667 |
+
},
|
| 668 |
+
"by_domain": {
|
| 669 |
+
"citizen_chat": {
|
| 670 |
+
"precision": 0.875,
|
| 671 |
+
"recall": 1.0,
|
| 672 |
+
"f1": 0.9333333333333333,
|
| 673 |
+
"tp": 28,
|
| 674 |
+
"fp": 4,
|
| 675 |
+
"fn": 0
|
| 676 |
+
},
|
| 677 |
+
"gov_data": {
|
| 678 |
+
"precision": 0.875,
|
| 679 |
+
"recall": 1.0,
|
| 680 |
+
"f1": 0.9333333333333333,
|
| 681 |
+
"tp": 28,
|
| 682 |
+
"fp": 4,
|
| 683 |
+
"fn": 0
|
| 684 |
+
},
|
| 685 |
+
"hse_medical": {
|
| 686 |
+
"precision": 0.875,
|
| 687 |
+
"recall": 1.0,
|
| 688 |
+
"f1": 0.9333333333333333,
|
| 689 |
+
"tp": 28,
|
| 690 |
+
"fp": 4,
|
| 691 |
+
"fn": 0
|
| 692 |
+
}
|
| 693 |
+
},
|
| 694 |
+
"by_language": {
|
| 695 |
+
"de": {
|
| 696 |
+
"precision": 0.8571428571428571,
|
| 697 |
+
"recall": 1.0,
|
| 698 |
+
"f1": 0.923076923076923,
|
| 699 |
+
"tp": 6,
|
| 700 |
+
"fp": 1,
|
| 701 |
+
"fn": 0
|
| 702 |
+
},
|
| 703 |
+
"en": {
|
| 704 |
+
"precision": 1.0,
|
| 705 |
+
"recall": 1.0,
|
| 706 |
+
"f1": 1.0,
|
| 707 |
+
"tp": 6,
|
| 708 |
+
"fp": 0,
|
| 709 |
+
"fn": 0
|
| 710 |
+
},
|
| 711 |
+
"es": {
|
| 712 |
+
"precision": 1.0,
|
| 713 |
+
"recall": 1.0,
|
| 714 |
+
"f1": 1.0,
|
| 715 |
+
"tp": 6,
|
| 716 |
+
"fp": 0,
|
| 717 |
+
"fn": 0
|
| 718 |
+
},
|
| 719 |
+
"fr": {
|
| 720 |
+
"precision": 1.0,
|
| 721 |
+
"recall": 1.0,
|
| 722 |
+
"f1": 1.0,
|
| 723 |
+
"tp": 6,
|
| 724 |
+
"fp": 0,
|
| 725 |
+
"fn": 0
|
| 726 |
+
},
|
| 727 |
+
"ga": {
|
| 728 |
+
"precision": 1.0,
|
| 729 |
+
"recall": 1.0,
|
| 730 |
+
"f1": 1.0,
|
| 731 |
+
"tp": 6,
|
| 732 |
+
"fp": 0,
|
| 733 |
+
"fn": 0
|
| 734 |
+
},
|
| 735 |
+
"it": {
|
| 736 |
+
"precision": 1.0,
|
| 737 |
+
"recall": 1.0,
|
| 738 |
+
"f1": 1.0,
|
| 739 |
+
"tp": 6,
|
| 740 |
+
"fp": 0,
|
| 741 |
+
"fn": 0
|
| 742 |
+
},
|
| 743 |
+
"ja": {
|
| 744 |
+
"precision": 0.75,
|
| 745 |
+
"recall": 1.0,
|
| 746 |
+
"f1": 0.8571428571428571,
|
| 747 |
+
"tp": 6,
|
| 748 |
+
"fp": 2,
|
| 749 |
+
"fn": 0
|
| 750 |
+
},
|
| 751 |
+
"nl": {
|
| 752 |
+
"precision": 1.0,
|
| 753 |
+
"recall": 1.0,
|
| 754 |
+
"f1": 1.0,
|
| 755 |
+
"tp": 6,
|
| 756 |
+
"fp": 0,
|
| 757 |
+
"fn": 0
|
| 758 |
+
},
|
| 759 |
+
"pl": {
|
| 760 |
+
"precision": 1.0,
|
| 761 |
+
"recall": 1.0,
|
| 762 |
+
"f1": 1.0,
|
| 763 |
+
"tp": 6,
|
| 764 |
+
"fp": 0,
|
| 765 |
+
"fn": 0
|
| 766 |
+
},
|
| 767 |
+
"pt": {
|
| 768 |
+
"precision": 1.0,
|
| 769 |
+
"recall": 1.0,
|
| 770 |
+
"f1": 1.0,
|
| 771 |
+
"tp": 6,
|
| 772 |
+
"fp": 0,
|
| 773 |
+
"fn": 0
|
| 774 |
+
},
|
| 775 |
+
"ro": {
|
| 776 |
+
"precision": 1.0,
|
| 777 |
+
"recall": 1.0,
|
| 778 |
+
"f1": 1.0,
|
| 779 |
+
"tp": 6,
|
| 780 |
+
"fp": 0,
|
| 781 |
+
"fn": 0
|
| 782 |
+
},
|
| 783 |
+
"ru": {
|
| 784 |
+
"precision": 0.6666666666666666,
|
| 785 |
+
"recall": 1.0,
|
| 786 |
+
"f1": 0.8,
|
| 787 |
+
"tp": 6,
|
| 788 |
+
"fp": 3,
|
| 789 |
+
"fn": 0
|
| 790 |
+
},
|
| 791 |
+
"uk": {
|
| 792 |
+
"precision": 0.6666666666666666,
|
| 793 |
+
"recall": 1.0,
|
| 794 |
+
"f1": 0.8,
|
| 795 |
+
"tp": 6,
|
| 796 |
+
"fp": 3,
|
| 797 |
+
"fn": 0
|
| 798 |
+
},
|
| 799 |
+
"zh": {
|
| 800 |
+
"precision": 0.6666666666666666,
|
| 801 |
+
"recall": 1.0,
|
| 802 |
+
"f1": 0.8,
|
| 803 |
+
"tp": 6,
|
| 804 |
+
"fp": 3,
|
| 805 |
+
"fn": 0
|
| 806 |
+
}
|
| 807 |
+
},
|
| 808 |
+
"onnx_file": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8/model_quantized.onnx"
|
| 809 |
+
}
|
| 810 |
+
}
|
| 811 |
+
}
|
| 812 |
+
}
|
inference_mask.py
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
| 8 |
+
os.environ.setdefault("TRANSFORMERS_NO_TORCHVISION", "1")
|
| 9 |
+
os.environ["USE_TF"] = "0"
|
| 10 |
+
os.environ["USE_FLAX"] = "0"
|
| 11 |
+
os.environ["USE_TORCH"] = "1"
|
| 12 |
+
|
| 13 |
+
import torch
|
| 14 |
+
from transformers import AutoModelForTokenClassification, AutoTokenizer, pipeline
|
| 15 |
+
|
| 16 |
+
import regex as re
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
TOKEN_RE = re.compile(r"[A-Za-z0-9]+|[^\w\s]", re.UNICODE)
|
| 20 |
+
EIRCODE_RE = re.compile(r"^(?:[ACDEFHKNPRTVWXY]\d{2}|D6W)\s?[0-9ACDEFHKNPRTVWXY]{4}$", re.IGNORECASE)
|
| 21 |
+
ALLOWED = {
|
| 22 |
+
"PPSN",
|
| 23 |
+
"ACCOUNT_NUMBER",
|
| 24 |
+
"BANK_ROUTING_NUMBER",
|
| 25 |
+
"CREDIT_DEBIT_CARD",
|
| 26 |
+
"PASSPORT_NUMBER",
|
| 27 |
+
"POSTCODE",
|
| 28 |
+
"PHONE_NUMBER",
|
| 29 |
+
"EMAIL",
|
| 30 |
+
"FIRST_NAME",
|
| 31 |
+
"LAST_NAME",
|
| 32 |
+
"SWIFT_BIC",
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def tokenize_with_spans(text: str):
|
| 37 |
+
return [(m.group(0), m.start(), m.end()) for m in TOKEN_RE.finditer(text)]
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def normalize_label(label: str) -> str:
|
| 41 |
+
label = (label or "").strip()
|
| 42 |
+
if label.startswith("B-") or label.startswith("I-"):
|
| 43 |
+
label = label[2:]
|
| 44 |
+
return label.upper()
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def looks_like_eircode(value: str) -> bool:
|
| 48 |
+
return EIRCODE_RE.match(value.strip()) is not None
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def ppsn_label_ids(model):
|
| 52 |
+
ids = []
|
| 53 |
+
for raw_id, raw_label in model.config.id2label.items():
|
| 54 |
+
label_id = int(raw_id)
|
| 55 |
+
label = str(raw_label or "").strip()
|
| 56 |
+
if label.endswith("PPSN"):
|
| 57 |
+
ids.append(label_id)
|
| 58 |
+
return sorted(ids)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def word_aligned_ppsn_spans(text: str, model, tokenizer, threshold: float):
|
| 62 |
+
pieces = tokenize_with_spans(text)
|
| 63 |
+
if not pieces:
|
| 64 |
+
return []
|
| 65 |
+
words = [word for word, _, _ in pieces]
|
| 66 |
+
encoded = tokenizer(words, is_split_into_words=True, return_tensors="pt", truncation=True)
|
| 67 |
+
word_ids = encoded.word_ids(batch_index=0)
|
| 68 |
+
device = next(model.parameters()).device
|
| 69 |
+
encoded = {k: v.to(device) for k, v in encoded.items()}
|
| 70 |
+
with torch.no_grad():
|
| 71 |
+
logits = model(**encoded).logits[0]
|
| 72 |
+
probs = torch.softmax(logits, dim=-1)
|
| 73 |
+
label_ids = ppsn_label_ids(model)
|
| 74 |
+
word_scores = []
|
| 75 |
+
for word_index in range(len(pieces)):
|
| 76 |
+
score = 0.0
|
| 77 |
+
for token_index, wid in enumerate(word_ids):
|
| 78 |
+
if wid != word_index:
|
| 79 |
+
continue
|
| 80 |
+
for label_id in label_ids:
|
| 81 |
+
score = max(score, float(probs[token_index, label_id]))
|
| 82 |
+
word_scores.append(score)
|
| 83 |
+
spans = []
|
| 84 |
+
active = None
|
| 85 |
+
for (_, start, end), score in zip(pieces, word_scores):
|
| 86 |
+
if score >= threshold:
|
| 87 |
+
if active is None:
|
| 88 |
+
active = {"start": start, "end": end, "score": score}
|
| 89 |
+
else:
|
| 90 |
+
active["end"] = end
|
| 91 |
+
active["score"] = max(active["score"], score)
|
| 92 |
+
elif active is not None:
|
| 93 |
+
spans.append(active)
|
| 94 |
+
active = None
|
| 95 |
+
if active is not None:
|
| 96 |
+
spans.append(active)
|
| 97 |
+
for span in spans:
|
| 98 |
+
span["label"] = "PPSN"
|
| 99 |
+
span["text"] = text[span["start"]:span["end"]]
|
| 100 |
+
return spans
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
def merge_spans(text: str, general_spans: list[dict], ppsn_spans: list[dict], other_min_score: float):
|
| 104 |
+
out = []
|
| 105 |
+
for span in general_spans:
|
| 106 |
+
label = normalize_label(span.get("entity_group") or span.get("entity") or "")
|
| 107 |
+
if label not in ALLOWED or label == "PPSN":
|
| 108 |
+
continue
|
| 109 |
+
if float(span.get("score", 0.0)) < other_min_score:
|
| 110 |
+
continue
|
| 111 |
+
out.append({
|
| 112 |
+
"label": label,
|
| 113 |
+
"start": int(span["start"]),
|
| 114 |
+
"end": int(span["end"]),
|
| 115 |
+
"score": float(span["score"]),
|
| 116 |
+
"text": text[int(span["start"]):int(span["end"])],
|
| 117 |
+
})
|
| 118 |
+
def overlaps(a, b):
|
| 119 |
+
return not (a["end"] <= b["start"] or b["end"] <= a["start"])
|
| 120 |
+
for span in ppsn_spans:
|
| 121 |
+
if looks_like_eircode(span["text"]):
|
| 122 |
+
continue
|
| 123 |
+
if any(overlaps(span, existing) for existing in out):
|
| 124 |
+
continue
|
| 125 |
+
out.append(span)
|
| 126 |
+
out.sort(key=lambda item: (item["start"], item["end"]))
|
| 127 |
+
return out
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
def mask_text(text: str, spans: list[dict]) -> str:
|
| 131 |
+
out = text
|
| 132 |
+
for span in sorted(spans, key=lambda item: (item["start"], item["end"]), reverse=True):
|
| 133 |
+
out = out[:span["start"]] + f"[{span['label']}]" + out[span["end"]:]
|
| 134 |
+
return out
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
def main():
|
| 138 |
+
parser = argparse.ArgumentParser()
|
| 139 |
+
parser.add_argument("--model", default=".")
|
| 140 |
+
parser.add_argument("--text", required=True)
|
| 141 |
+
parser.add_argument("--device", choices=["auto", "cpu", "cuda"], default="auto")
|
| 142 |
+
parser.add_argument("--ppsn-min-score", type=float, default=0.55)
|
| 143 |
+
parser.add_argument("--other-min-score", type=float, default=0.40)
|
| 144 |
+
parser.add_argument("--json", action="store_true")
|
| 145 |
+
args = parser.parse_args()
|
| 146 |
+
|
| 147 |
+
try:
|
| 148 |
+
tokenizer = AutoTokenizer.from_pretrained(args.model, use_fast=True, fix_mistral_regex=True)
|
| 149 |
+
except Exception:
|
| 150 |
+
try:
|
| 151 |
+
tokenizer = AutoTokenizer.from_pretrained(args.model, use_fast=True, fix_mistral_regex=False)
|
| 152 |
+
except TypeError:
|
| 153 |
+
tokenizer = AutoTokenizer.from_pretrained(args.model, use_fast=True)
|
| 154 |
+
model = AutoModelForTokenClassification.from_pretrained(args.model)
|
| 155 |
+
if args.device == "auto":
|
| 156 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 157 |
+
else:
|
| 158 |
+
device = args.device
|
| 159 |
+
model.to(device)
|
| 160 |
+
model.eval()
|
| 161 |
+
|
| 162 |
+
nlp = pipeline("token-classification", model=model, tokenizer=tokenizer, aggregation_strategy="simple", device=0 if device == "cuda" else -1)
|
| 163 |
+
general = nlp(args.text)
|
| 164 |
+
ppsn = word_aligned_ppsn_spans(args.text, model, tokenizer, threshold=args.ppsn_min_score)
|
| 165 |
+
spans = merge_spans(args.text, general, ppsn, other_min_score=args.other_min_score)
|
| 166 |
+
result = {
|
| 167 |
+
"model": args.model,
|
| 168 |
+
"masked_text": mask_text(args.text, spans),
|
| 169 |
+
"spans": spans,
|
| 170 |
+
"ppsn_decoder": "word_aligned",
|
| 171 |
+
"ppsn_min_score": args.ppsn_min_score,
|
| 172 |
+
"other_min_score": args.other_min_score,
|
| 173 |
+
}
|
| 174 |
+
if args.json:
|
| 175 |
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
| 176 |
+
else:
|
| 177 |
+
print(result["masked_text"])
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
if __name__ == "__main__":
|
| 181 |
+
main()
|
inference_mask_onnx.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
import argparse
|
| 3 |
+
import json
|
| 4 |
+
|
| 5 |
+
from onnx_token_classifier import (
|
| 6 |
+
load_onnx_token_classifier,
|
| 7 |
+
looks_like_eircode,
|
| 8 |
+
normalize_label,
|
| 9 |
+
simple_aggregate_spans_onnx,
|
| 10 |
+
word_aligned_ppsn_spans_onnx,
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
ALLOWED = {
|
| 15 |
+
"PPSN",
|
| 16 |
+
"ACCOUNT_NUMBER",
|
| 17 |
+
"BANK_ROUTING_NUMBER",
|
| 18 |
+
"CREDIT_DEBIT_CARD",
|
| 19 |
+
"PASSPORT_NUMBER",
|
| 20 |
+
"POSTCODE",
|
| 21 |
+
"PHONE_NUMBER",
|
| 22 |
+
"EMAIL",
|
| 23 |
+
"FIRST_NAME",
|
| 24 |
+
"LAST_NAME",
|
| 25 |
+
"SWIFT_BIC",
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def mask_text(text: str, spans: list[dict]) -> str:
|
| 30 |
+
out = text
|
| 31 |
+
for span in sorted(spans, key=lambda item: (item["start"], item["end"]), reverse=True):
|
| 32 |
+
out = out[:span["start"]] + f"[{span['label']}]" + out[span["end"]:]
|
| 33 |
+
return out
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def main():
|
| 37 |
+
parser = argparse.ArgumentParser()
|
| 38 |
+
parser.add_argument("--model", default=".")
|
| 39 |
+
parser.add_argument("--text", required=True)
|
| 40 |
+
parser.add_argument("--ppsn-min-score", type=float, default=0.60)
|
| 41 |
+
parser.add_argument("--other-min-score", type=float, default=0.45)
|
| 42 |
+
parser.add_argument("--json", action="store_true")
|
| 43 |
+
args = parser.parse_args()
|
| 44 |
+
|
| 45 |
+
session, tokenizer, config = load_onnx_token_classifier(args.model)
|
| 46 |
+
general = simple_aggregate_spans_onnx(args.text, session, tokenizer, config, min_score=args.other_min_score)
|
| 47 |
+
ppsn = word_aligned_ppsn_spans_onnx(args.text, session, tokenizer, config, threshold=args.ppsn_min_score)
|
| 48 |
+
spans = []
|
| 49 |
+
for span in general:
|
| 50 |
+
label = normalize_label(span["label"])
|
| 51 |
+
if label in ALLOWED and label != "PPSN":
|
| 52 |
+
spans.append(span)
|
| 53 |
+
def overlaps(a, b):
|
| 54 |
+
return not (a["end"] <= b["start"] or b["end"] <= a["start"])
|
| 55 |
+
for span in ppsn:
|
| 56 |
+
if looks_like_eircode(span["text"]):
|
| 57 |
+
continue
|
| 58 |
+
if any(overlaps(span, existing) for existing in spans):
|
| 59 |
+
continue
|
| 60 |
+
spans.append(span)
|
| 61 |
+
spans.sort(key=lambda item: (item["start"], item["end"]))
|
| 62 |
+
result = {
|
| 63 |
+
"model": args.model,
|
| 64 |
+
"masked_text": mask_text(args.text, spans),
|
| 65 |
+
"spans": spans,
|
| 66 |
+
"ppsn_decoder": "word_aligned",
|
| 67 |
+
"ppsn_min_score": args.ppsn_min_score,
|
| 68 |
+
"other_min_score": args.other_min_score,
|
| 69 |
+
"backend": "onnx",
|
| 70 |
+
}
|
| 71 |
+
if args.json:
|
| 72 |
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
| 73 |
+
else:
|
| 74 |
+
print(result["masked_text"])
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
if __name__ == "__main__":
|
| 78 |
+
main()
|
label_meta.json
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 3 |
+
"label_list": [
|
| 4 |
+
"O",
|
| 5 |
+
"B-account_number",
|
| 6 |
+
"B-age",
|
| 7 |
+
"B-api_key",
|
| 8 |
+
"B-bank_routing_number",
|
| 9 |
+
"B-biometric_identifier",
|
| 10 |
+
"B-blood_type",
|
| 11 |
+
"B-certificate_license_number",
|
| 12 |
+
"B-city",
|
| 13 |
+
"B-company_name",
|
| 14 |
+
"B-coordinate",
|
| 15 |
+
"B-country",
|
| 16 |
+
"B-county",
|
| 17 |
+
"B-credit_debit_card",
|
| 18 |
+
"B-customer_id",
|
| 19 |
+
"B-cvv",
|
| 20 |
+
"B-date",
|
| 21 |
+
"B-date_of_birth",
|
| 22 |
+
"B-date_time",
|
| 23 |
+
"B-device_identifier",
|
| 24 |
+
"B-education_level",
|
| 25 |
+
"B-email",
|
| 26 |
+
"B-employee_id",
|
| 27 |
+
"B-employment_status",
|
| 28 |
+
"B-fax_number",
|
| 29 |
+
"B-first_name",
|
| 30 |
+
"B-gender",
|
| 31 |
+
"B-health_plan_beneficiary_number",
|
| 32 |
+
"B-http_cookie",
|
| 33 |
+
"B-ipv4",
|
| 34 |
+
"B-ipv6",
|
| 35 |
+
"B-language",
|
| 36 |
+
"B-last_name",
|
| 37 |
+
"B-license_plate",
|
| 38 |
+
"B-mac_address",
|
| 39 |
+
"B-medical_record_number",
|
| 40 |
+
"B-occupation",
|
| 41 |
+
"B-password",
|
| 42 |
+
"B-phone_number",
|
| 43 |
+
"B-pin",
|
| 44 |
+
"B-political_view",
|
| 45 |
+
"B-postcode",
|
| 46 |
+
"B-race_ethnicity",
|
| 47 |
+
"B-religious_belief",
|
| 48 |
+
"B-sexuality",
|
| 49 |
+
"B-ssn",
|
| 50 |
+
"B-state",
|
| 51 |
+
"B-street_address",
|
| 52 |
+
"B-swift_bic",
|
| 53 |
+
"B-tax_id",
|
| 54 |
+
"B-time",
|
| 55 |
+
"B-unique_id",
|
| 56 |
+
"B-url",
|
| 57 |
+
"B-user_name",
|
| 58 |
+
"B-vehicle_identifier",
|
| 59 |
+
"I-account_number",
|
| 60 |
+
"I-api_key",
|
| 61 |
+
"I-biometric_identifier",
|
| 62 |
+
"I-blood_type",
|
| 63 |
+
"I-certificate_license_number",
|
| 64 |
+
"I-city",
|
| 65 |
+
"I-company_name",
|
| 66 |
+
"I-coordinate",
|
| 67 |
+
"I-country",
|
| 68 |
+
"I-county",
|
| 69 |
+
"I-credit_debit_card",
|
| 70 |
+
"I-customer_id",
|
| 71 |
+
"I-date",
|
| 72 |
+
"I-date_of_birth",
|
| 73 |
+
"I-date_time",
|
| 74 |
+
"I-device_identifier",
|
| 75 |
+
"I-education_level",
|
| 76 |
+
"I-email",
|
| 77 |
+
"I-employee_id",
|
| 78 |
+
"I-employment_status",
|
| 79 |
+
"I-fax_number",
|
| 80 |
+
"I-first_name",
|
| 81 |
+
"I-gender",
|
| 82 |
+
"I-health_plan_beneficiary_number",
|
| 83 |
+
"I-http_cookie",
|
| 84 |
+
"I-ipv4",
|
| 85 |
+
"I-ipv6",
|
| 86 |
+
"I-language",
|
| 87 |
+
"I-last_name",
|
| 88 |
+
"I-license_plate",
|
| 89 |
+
"I-mac_address",
|
| 90 |
+
"I-medical_record_number",
|
| 91 |
+
"I-occupation",
|
| 92 |
+
"I-password",
|
| 93 |
+
"I-phone_number",
|
| 94 |
+
"I-pin",
|
| 95 |
+
"I-political_view",
|
| 96 |
+
"I-postcode",
|
| 97 |
+
"I-race_ethnicity",
|
| 98 |
+
"I-religious_belief",
|
| 99 |
+
"I-sexuality",
|
| 100 |
+
"I-ssn",
|
| 101 |
+
"I-state",
|
| 102 |
+
"I-street_address",
|
| 103 |
+
"I-swift_bic",
|
| 104 |
+
"I-tax_id",
|
| 105 |
+
"I-time",
|
| 106 |
+
"I-unique_id",
|
| 107 |
+
"I-url",
|
| 108 |
+
"I-user_name",
|
| 109 |
+
"I-vehicle_identifier",
|
| 110 |
+
"B-PPSN",
|
| 111 |
+
"I-PPSN",
|
| 112 |
+
"B-PASSPORT_NUMBER",
|
| 113 |
+
"I-PASSPORT_NUMBER",
|
| 114 |
+
"I-bank_routing_number"
|
| 115 |
+
],
|
| 116 |
+
"num_labels": 111,
|
| 117 |
+
"target_label": "PPSN",
|
| 118 |
+
"extra_labels": [
|
| 119 |
+
"PPSN",
|
| 120 |
+
"PASSPORT_NUMBER",
|
| 121 |
+
"PHONE_NUMBER",
|
| 122 |
+
"POSTCODE",
|
| 123 |
+
"BANK_ROUTING_NUMBER",
|
| 124 |
+
"ACCOUNT_NUMBER",
|
| 125 |
+
"CREDIT_DEBIT_CARD",
|
| 126 |
+
"EMAIL",
|
| 127 |
+
"FIRST_NAME",
|
| 128 |
+
"LAST_NAME",
|
| 129 |
+
"SWIFT_BIC"
|
| 130 |
+
]
|
| 131 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cad5c4d1647a3e45d14665f42167611f1a4ca0bdb298199f0f0d9d1da834dafd
|
| 3 |
+
size 539290124
|
onnx/config.json
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation": "gelu",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"DistilBertForTokenClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.1,
|
| 7 |
+
"dim": 768,
|
| 8 |
+
"dropout": 0.1,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"hidden_dim": 3072,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "O",
|
| 13 |
+
"1": "B-account_number",
|
| 14 |
+
"2": "B-age",
|
| 15 |
+
"3": "B-api_key",
|
| 16 |
+
"4": "B-bank_routing_number",
|
| 17 |
+
"5": "B-biometric_identifier",
|
| 18 |
+
"6": "B-blood_type",
|
| 19 |
+
"7": "B-certificate_license_number",
|
| 20 |
+
"8": "B-city",
|
| 21 |
+
"9": "B-company_name",
|
| 22 |
+
"10": "B-coordinate",
|
| 23 |
+
"11": "B-country",
|
| 24 |
+
"12": "B-county",
|
| 25 |
+
"13": "B-credit_debit_card",
|
| 26 |
+
"14": "B-customer_id",
|
| 27 |
+
"15": "B-cvv",
|
| 28 |
+
"16": "B-date",
|
| 29 |
+
"17": "B-date_of_birth",
|
| 30 |
+
"18": "B-date_time",
|
| 31 |
+
"19": "B-device_identifier",
|
| 32 |
+
"20": "B-education_level",
|
| 33 |
+
"21": "B-email",
|
| 34 |
+
"22": "B-employee_id",
|
| 35 |
+
"23": "B-employment_status",
|
| 36 |
+
"24": "B-fax_number",
|
| 37 |
+
"25": "B-first_name",
|
| 38 |
+
"26": "B-gender",
|
| 39 |
+
"27": "B-health_plan_beneficiary_number",
|
| 40 |
+
"28": "B-http_cookie",
|
| 41 |
+
"29": "B-ipv4",
|
| 42 |
+
"30": "B-ipv6",
|
| 43 |
+
"31": "B-language",
|
| 44 |
+
"32": "B-last_name",
|
| 45 |
+
"33": "B-license_plate",
|
| 46 |
+
"34": "B-mac_address",
|
| 47 |
+
"35": "B-medical_record_number",
|
| 48 |
+
"36": "B-occupation",
|
| 49 |
+
"37": "B-password",
|
| 50 |
+
"38": "B-phone_number",
|
| 51 |
+
"39": "B-pin",
|
| 52 |
+
"40": "B-political_view",
|
| 53 |
+
"41": "B-postcode",
|
| 54 |
+
"42": "B-race_ethnicity",
|
| 55 |
+
"43": "B-religious_belief",
|
| 56 |
+
"44": "B-sexuality",
|
| 57 |
+
"45": "B-ssn",
|
| 58 |
+
"46": "B-state",
|
| 59 |
+
"47": "B-street_address",
|
| 60 |
+
"48": "B-swift_bic",
|
| 61 |
+
"49": "B-tax_id",
|
| 62 |
+
"50": "B-time",
|
| 63 |
+
"51": "B-unique_id",
|
| 64 |
+
"52": "B-url",
|
| 65 |
+
"53": "B-user_name",
|
| 66 |
+
"54": "B-vehicle_identifier",
|
| 67 |
+
"55": "I-account_number",
|
| 68 |
+
"56": "I-api_key",
|
| 69 |
+
"57": "I-biometric_identifier",
|
| 70 |
+
"58": "I-blood_type",
|
| 71 |
+
"59": "I-certificate_license_number",
|
| 72 |
+
"60": "I-city",
|
| 73 |
+
"61": "I-company_name",
|
| 74 |
+
"62": "I-coordinate",
|
| 75 |
+
"63": "I-country",
|
| 76 |
+
"64": "I-county",
|
| 77 |
+
"65": "I-credit_debit_card",
|
| 78 |
+
"66": "I-customer_id",
|
| 79 |
+
"67": "I-date",
|
| 80 |
+
"68": "I-date_of_birth",
|
| 81 |
+
"69": "I-date_time",
|
| 82 |
+
"70": "I-device_identifier",
|
| 83 |
+
"71": "I-education_level",
|
| 84 |
+
"72": "I-email",
|
| 85 |
+
"73": "I-employee_id",
|
| 86 |
+
"74": "I-employment_status",
|
| 87 |
+
"75": "I-fax_number",
|
| 88 |
+
"76": "I-first_name",
|
| 89 |
+
"77": "I-gender",
|
| 90 |
+
"78": "I-health_plan_beneficiary_number",
|
| 91 |
+
"79": "I-http_cookie",
|
| 92 |
+
"80": "I-ipv4",
|
| 93 |
+
"81": "I-ipv6",
|
| 94 |
+
"82": "I-language",
|
| 95 |
+
"83": "I-last_name",
|
| 96 |
+
"84": "I-license_plate",
|
| 97 |
+
"85": "I-mac_address",
|
| 98 |
+
"86": "I-medical_record_number",
|
| 99 |
+
"87": "I-occupation",
|
| 100 |
+
"88": "I-password",
|
| 101 |
+
"89": "I-phone_number",
|
| 102 |
+
"90": "I-pin",
|
| 103 |
+
"91": "I-political_view",
|
| 104 |
+
"92": "I-postcode",
|
| 105 |
+
"93": "I-race_ethnicity",
|
| 106 |
+
"94": "I-religious_belief",
|
| 107 |
+
"95": "I-sexuality",
|
| 108 |
+
"96": "I-ssn",
|
| 109 |
+
"97": "I-state",
|
| 110 |
+
"98": "I-street_address",
|
| 111 |
+
"99": "I-swift_bic",
|
| 112 |
+
"100": "I-tax_id",
|
| 113 |
+
"101": "I-time",
|
| 114 |
+
"102": "I-unique_id",
|
| 115 |
+
"103": "I-url",
|
| 116 |
+
"104": "I-user_name",
|
| 117 |
+
"105": "I-vehicle_identifier",
|
| 118 |
+
"106": "B-PPSN",
|
| 119 |
+
"107": "I-PPSN",
|
| 120 |
+
"108": "B-PASSPORT_NUMBER",
|
| 121 |
+
"109": "I-PASSPORT_NUMBER",
|
| 122 |
+
"110": "I-bank_routing_number"
|
| 123 |
+
},
|
| 124 |
+
"initializer_range": 0.02,
|
| 125 |
+
"label2id": {
|
| 126 |
+
"B-PASSPORT_NUMBER": 108,
|
| 127 |
+
"B-PPSN": 106,
|
| 128 |
+
"B-account_number": 1,
|
| 129 |
+
"B-age": 2,
|
| 130 |
+
"B-api_key": 3,
|
| 131 |
+
"B-bank_routing_number": 4,
|
| 132 |
+
"B-biometric_identifier": 5,
|
| 133 |
+
"B-blood_type": 6,
|
| 134 |
+
"B-certificate_license_number": 7,
|
| 135 |
+
"B-city": 8,
|
| 136 |
+
"B-company_name": 9,
|
| 137 |
+
"B-coordinate": 10,
|
| 138 |
+
"B-country": 11,
|
| 139 |
+
"B-county": 12,
|
| 140 |
+
"B-credit_debit_card": 13,
|
| 141 |
+
"B-customer_id": 14,
|
| 142 |
+
"B-cvv": 15,
|
| 143 |
+
"B-date": 16,
|
| 144 |
+
"B-date_of_birth": 17,
|
| 145 |
+
"B-date_time": 18,
|
| 146 |
+
"B-device_identifier": 19,
|
| 147 |
+
"B-education_level": 20,
|
| 148 |
+
"B-email": 21,
|
| 149 |
+
"B-employee_id": 22,
|
| 150 |
+
"B-employment_status": 23,
|
| 151 |
+
"B-fax_number": 24,
|
| 152 |
+
"B-first_name": 25,
|
| 153 |
+
"B-gender": 26,
|
| 154 |
+
"B-health_plan_beneficiary_number": 27,
|
| 155 |
+
"B-http_cookie": 28,
|
| 156 |
+
"B-ipv4": 29,
|
| 157 |
+
"B-ipv6": 30,
|
| 158 |
+
"B-language": 31,
|
| 159 |
+
"B-last_name": 32,
|
| 160 |
+
"B-license_plate": 33,
|
| 161 |
+
"B-mac_address": 34,
|
| 162 |
+
"B-medical_record_number": 35,
|
| 163 |
+
"B-occupation": 36,
|
| 164 |
+
"B-password": 37,
|
| 165 |
+
"B-phone_number": 38,
|
| 166 |
+
"B-pin": 39,
|
| 167 |
+
"B-political_view": 40,
|
| 168 |
+
"B-postcode": 41,
|
| 169 |
+
"B-race_ethnicity": 42,
|
| 170 |
+
"B-religious_belief": 43,
|
| 171 |
+
"B-sexuality": 44,
|
| 172 |
+
"B-ssn": 45,
|
| 173 |
+
"B-state": 46,
|
| 174 |
+
"B-street_address": 47,
|
| 175 |
+
"B-swift_bic": 48,
|
| 176 |
+
"B-tax_id": 49,
|
| 177 |
+
"B-time": 50,
|
| 178 |
+
"B-unique_id": 51,
|
| 179 |
+
"B-url": 52,
|
| 180 |
+
"B-user_name": 53,
|
| 181 |
+
"B-vehicle_identifier": 54,
|
| 182 |
+
"I-PASSPORT_NUMBER": 109,
|
| 183 |
+
"I-PPSN": 107,
|
| 184 |
+
"I-account_number": 55,
|
| 185 |
+
"I-api_key": 56,
|
| 186 |
+
"I-bank_routing_number": 110,
|
| 187 |
+
"I-biometric_identifier": 57,
|
| 188 |
+
"I-blood_type": 58,
|
| 189 |
+
"I-certificate_license_number": 59,
|
| 190 |
+
"I-city": 60,
|
| 191 |
+
"I-company_name": 61,
|
| 192 |
+
"I-coordinate": 62,
|
| 193 |
+
"I-country": 63,
|
| 194 |
+
"I-county": 64,
|
| 195 |
+
"I-credit_debit_card": 65,
|
| 196 |
+
"I-customer_id": 66,
|
| 197 |
+
"I-date": 67,
|
| 198 |
+
"I-date_of_birth": 68,
|
| 199 |
+
"I-date_time": 69,
|
| 200 |
+
"I-device_identifier": 70,
|
| 201 |
+
"I-education_level": 71,
|
| 202 |
+
"I-email": 72,
|
| 203 |
+
"I-employee_id": 73,
|
| 204 |
+
"I-employment_status": 74,
|
| 205 |
+
"I-fax_number": 75,
|
| 206 |
+
"I-first_name": 76,
|
| 207 |
+
"I-gender": 77,
|
| 208 |
+
"I-health_plan_beneficiary_number": 78,
|
| 209 |
+
"I-http_cookie": 79,
|
| 210 |
+
"I-ipv4": 80,
|
| 211 |
+
"I-ipv6": 81,
|
| 212 |
+
"I-language": 82,
|
| 213 |
+
"I-last_name": 83,
|
| 214 |
+
"I-license_plate": 84,
|
| 215 |
+
"I-mac_address": 85,
|
| 216 |
+
"I-medical_record_number": 86,
|
| 217 |
+
"I-occupation": 87,
|
| 218 |
+
"I-password": 88,
|
| 219 |
+
"I-phone_number": 89,
|
| 220 |
+
"I-pin": 90,
|
| 221 |
+
"I-political_view": 91,
|
| 222 |
+
"I-postcode": 92,
|
| 223 |
+
"I-race_ethnicity": 93,
|
| 224 |
+
"I-religious_belief": 94,
|
| 225 |
+
"I-sexuality": 95,
|
| 226 |
+
"I-ssn": 96,
|
| 227 |
+
"I-state": 97,
|
| 228 |
+
"I-street_address": 98,
|
| 229 |
+
"I-swift_bic": 99,
|
| 230 |
+
"I-tax_id": 100,
|
| 231 |
+
"I-time": 101,
|
| 232 |
+
"I-unique_id": 102,
|
| 233 |
+
"I-url": 103,
|
| 234 |
+
"I-user_name": 104,
|
| 235 |
+
"I-vehicle_identifier": 105,
|
| 236 |
+
"O": 0
|
| 237 |
+
},
|
| 238 |
+
"max_position_embeddings": 512,
|
| 239 |
+
"model_type": "distilbert",
|
| 240 |
+
"n_heads": 12,
|
| 241 |
+
"n_layers": 6,
|
| 242 |
+
"output_past": true,
|
| 243 |
+
"pad_token_id": 0,
|
| 244 |
+
"qa_dropout": 0.1,
|
| 245 |
+
"seq_classif_dropout": 0.2,
|
| 246 |
+
"sinusoidal_pos_embds": false,
|
| 247 |
+
"tie_weights_": true,
|
| 248 |
+
"transformers_version": "4.57.6",
|
| 249 |
+
"vocab_size": 119547
|
| 250 |
+
}
|
onnx/label_meta.json
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model": "models/openmed-mliteclinical-irish-core-v17_full_s180",
|
| 3 |
+
"label_list": [
|
| 4 |
+
"O",
|
| 5 |
+
"B-account_number",
|
| 6 |
+
"B-age",
|
| 7 |
+
"B-api_key",
|
| 8 |
+
"B-bank_routing_number",
|
| 9 |
+
"B-biometric_identifier",
|
| 10 |
+
"B-blood_type",
|
| 11 |
+
"B-certificate_license_number",
|
| 12 |
+
"B-city",
|
| 13 |
+
"B-company_name",
|
| 14 |
+
"B-coordinate",
|
| 15 |
+
"B-country",
|
| 16 |
+
"B-county",
|
| 17 |
+
"B-credit_debit_card",
|
| 18 |
+
"B-customer_id",
|
| 19 |
+
"B-cvv",
|
| 20 |
+
"B-date",
|
| 21 |
+
"B-date_of_birth",
|
| 22 |
+
"B-date_time",
|
| 23 |
+
"B-device_identifier",
|
| 24 |
+
"B-education_level",
|
| 25 |
+
"B-email",
|
| 26 |
+
"B-employee_id",
|
| 27 |
+
"B-employment_status",
|
| 28 |
+
"B-fax_number",
|
| 29 |
+
"B-first_name",
|
| 30 |
+
"B-gender",
|
| 31 |
+
"B-health_plan_beneficiary_number",
|
| 32 |
+
"B-http_cookie",
|
| 33 |
+
"B-ipv4",
|
| 34 |
+
"B-ipv6",
|
| 35 |
+
"B-language",
|
| 36 |
+
"B-last_name",
|
| 37 |
+
"B-license_plate",
|
| 38 |
+
"B-mac_address",
|
| 39 |
+
"B-medical_record_number",
|
| 40 |
+
"B-occupation",
|
| 41 |
+
"B-password",
|
| 42 |
+
"B-phone_number",
|
| 43 |
+
"B-pin",
|
| 44 |
+
"B-political_view",
|
| 45 |
+
"B-postcode",
|
| 46 |
+
"B-race_ethnicity",
|
| 47 |
+
"B-religious_belief",
|
| 48 |
+
"B-sexuality",
|
| 49 |
+
"B-ssn",
|
| 50 |
+
"B-state",
|
| 51 |
+
"B-street_address",
|
| 52 |
+
"B-swift_bic",
|
| 53 |
+
"B-tax_id",
|
| 54 |
+
"B-time",
|
| 55 |
+
"B-unique_id",
|
| 56 |
+
"B-url",
|
| 57 |
+
"B-user_name",
|
| 58 |
+
"B-vehicle_identifier",
|
| 59 |
+
"I-account_number",
|
| 60 |
+
"I-api_key",
|
| 61 |
+
"I-biometric_identifier",
|
| 62 |
+
"I-blood_type",
|
| 63 |
+
"I-certificate_license_number",
|
| 64 |
+
"I-city",
|
| 65 |
+
"I-company_name",
|
| 66 |
+
"I-coordinate",
|
| 67 |
+
"I-country",
|
| 68 |
+
"I-county",
|
| 69 |
+
"I-credit_debit_card",
|
| 70 |
+
"I-customer_id",
|
| 71 |
+
"I-date",
|
| 72 |
+
"I-date_of_birth",
|
| 73 |
+
"I-date_time",
|
| 74 |
+
"I-device_identifier",
|
| 75 |
+
"I-education_level",
|
| 76 |
+
"I-email",
|
| 77 |
+
"I-employee_id",
|
| 78 |
+
"I-employment_status",
|
| 79 |
+
"I-fax_number",
|
| 80 |
+
"I-first_name",
|
| 81 |
+
"I-gender",
|
| 82 |
+
"I-health_plan_beneficiary_number",
|
| 83 |
+
"I-http_cookie",
|
| 84 |
+
"I-ipv4",
|
| 85 |
+
"I-ipv6",
|
| 86 |
+
"I-language",
|
| 87 |
+
"I-last_name",
|
| 88 |
+
"I-license_plate",
|
| 89 |
+
"I-mac_address",
|
| 90 |
+
"I-medical_record_number",
|
| 91 |
+
"I-occupation",
|
| 92 |
+
"I-password",
|
| 93 |
+
"I-phone_number",
|
| 94 |
+
"I-pin",
|
| 95 |
+
"I-political_view",
|
| 96 |
+
"I-postcode",
|
| 97 |
+
"I-race_ethnicity",
|
| 98 |
+
"I-religious_belief",
|
| 99 |
+
"I-sexuality",
|
| 100 |
+
"I-ssn",
|
| 101 |
+
"I-state",
|
| 102 |
+
"I-street_address",
|
| 103 |
+
"I-swift_bic",
|
| 104 |
+
"I-tax_id",
|
| 105 |
+
"I-time",
|
| 106 |
+
"I-unique_id",
|
| 107 |
+
"I-url",
|
| 108 |
+
"I-user_name",
|
| 109 |
+
"I-vehicle_identifier",
|
| 110 |
+
"B-PPSN",
|
| 111 |
+
"I-PPSN",
|
| 112 |
+
"B-PASSPORT_NUMBER",
|
| 113 |
+
"I-PASSPORT_NUMBER",
|
| 114 |
+
"I-bank_routing_number"
|
| 115 |
+
],
|
| 116 |
+
"num_labels": 111,
|
| 117 |
+
"target_label": "PPSN",
|
| 118 |
+
"extra_labels": [
|
| 119 |
+
"PPSN",
|
| 120 |
+
"PASSPORT_NUMBER",
|
| 121 |
+
"PHONE_NUMBER",
|
| 122 |
+
"POSTCODE",
|
| 123 |
+
"BANK_ROUTING_NUMBER",
|
| 124 |
+
"ACCOUNT_NUMBER",
|
| 125 |
+
"CREDIT_DEBIT_CARD",
|
| 126 |
+
"EMAIL",
|
| 127 |
+
"FIRST_NAME",
|
| 128 |
+
"LAST_NAME",
|
| 129 |
+
"SWIFT_BIC"
|
| 130 |
+
]
|
| 131 |
+
}
|
onnx/model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e6d01052640d395078de109c3f194eef6d390fc5340e0d6a86bf8ca91baa166
|
| 3 |
+
size 412032331
|
onnx/onnx_export.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source_model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220",
|
| 3 |
+
"onnx_path": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx/model.onnx",
|
| 4 |
+
"method": "exported_with_optimum",
|
| 5 |
+
"preferred_onnx_file": null,
|
| 6 |
+
"opset": 18,
|
| 7 |
+
"max_length": 256,
|
| 8 |
+
"copied_assets": [
|
| 9 |
+
"config.json",
|
| 10 |
+
"label_meta.json",
|
| 11 |
+
"special_tokens_map.json",
|
| 12 |
+
"tokenizer.json",
|
| 13 |
+
"tokenizer_config.json",
|
| 14 |
+
"vocab.txt"
|
| 15 |
+
],
|
| 16 |
+
"external_data": false,
|
| 17 |
+
"task": "token-classification"
|
| 18 |
+
}
|
onnx/quantization.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source_dir": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx",
|
| 3 |
+
"input_model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8/model.onnx",
|
| 4 |
+
"output_model": "models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx_q8/model_quantized.onnx",
|
| 5 |
+
"weight_type": "qint8",
|
| 6 |
+
"per_channel": true,
|
| 7 |
+
"reduce_range": false,
|
| 8 |
+
"op_types": [
|
| 9 |
+
"MatMul",
|
| 10 |
+
"Gemm",
|
| 11 |
+
"Attention"
|
| 12 |
+
],
|
| 13 |
+
"copied_assets": [
|
| 14 |
+
"models/openmed-mliteclinical-irish-core-v19_boundaryplus_full_s220_onnx/model.onnx",
|
| 15 |
+
"onnx_export.json",
|
| 16 |
+
"config.json",
|
| 17 |
+
"label_meta.json",
|
| 18 |
+
"special_tokens_map.json",
|
| 19 |
+
"tokenizer.json",
|
| 20 |
+
"tokenizer_config.json",
|
| 21 |
+
"vocab.txt"
|
| 22 |
+
],
|
| 23 |
+
"format": "onnx_dynamic_quantized",
|
| 24 |
+
"task": "token-classification"
|
| 25 |
+
}
|
onnx/special_tokens_map.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": {
|
| 3 |
+
"content": "[CLS]",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"mask_token": {
|
| 10 |
+
"content": "[MASK]",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "[PAD]",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"sep_token": {
|
| 24 |
+
"content": "[SEP]",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"unk_token": {
|
| 31 |
+
"content": "[UNK]",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
}
|
| 37 |
+
}
|
onnx/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
onnx/tokenizer_config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[PAD]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"100": {
|
| 12 |
+
"content": "[UNK]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"101": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"102": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"103": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"clean_up_tokenization_spaces": false,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_lower_case": false,
|
| 47 |
+
"extra_special_tokens": {},
|
| 48 |
+
"fix_mistral_regex": true,
|
| 49 |
+
"mask_token": "[MASK]",
|
| 50 |
+
"max_length": 512,
|
| 51 |
+
"model_max_length": 512,
|
| 52 |
+
"pad_token": "[PAD]",
|
| 53 |
+
"sep_token": "[SEP]",
|
| 54 |
+
"stride": 0,
|
| 55 |
+
"strip_accents": null,
|
| 56 |
+
"tokenize_chinese_chars": true,
|
| 57 |
+
"tokenizer_class": "DistilBertTokenizer",
|
| 58 |
+
"truncation_side": "right",
|
| 59 |
+
"truncation_strategy": "longest_first",
|
| 60 |
+
"unk_token": "[UNK]"
|
| 61 |
+
}
|
onnx/vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
onnx_token_classifier.py
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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TF", "1")
|
| 8 |
+
os.environ.setdefault("TRANSFORMERS_NO_FLAX", "1")
|
| 9 |
+
os.environ.setdefault("TRANSFORMERS_NO_TORCHVISION", "1")
|
| 10 |
+
os.environ["USE_TF"] = "0"
|
| 11 |
+
os.environ["USE_FLAX"] = "0"
|
| 12 |
+
os.environ["USE_TORCH"] = "1"
|
| 13 |
+
|
| 14 |
+
import numpy as np
|
| 15 |
+
import regex as re
|
| 16 |
+
from huggingface_hub import HfApi, hf_hub_download
|
| 17 |
+
from transformers import AutoConfig, AutoTokenizer
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
TOKEN_RE = re.compile(r"[A-Za-z0-9]+|[^\w\s]", re.UNICODE)
|
| 21 |
+
DEFAULT_ONNX_FILES = ["onnx/model_quantized.onnx", "model_quantized.onnx"]
|
| 22 |
+
EIRCODE_RE = re.compile(r"^(?:[ACDEFHKNPRTVWXY]\d{2}|D6W)\s?[0-9ACDEFHKNPRTVWXY]{4}$", re.IGNORECASE)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def tokenize_with_spans(text: str):
|
| 26 |
+
return [(m.group(0), m.start(), m.end()) for m in TOKEN_RE.finditer(text)]
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def _load_tokenizer(tokenizer_ref: str):
|
| 30 |
+
tokenizer_path = Path(tokenizer_ref)
|
| 31 |
+
if tokenizer_path.exists():
|
| 32 |
+
tokenizer_cfg_path = tokenizer_path / "tokenizer_config.json"
|
| 33 |
+
if tokenizer_cfg_path.exists():
|
| 34 |
+
data = json.loads(tokenizer_cfg_path.read_text(encoding="utf-8"))
|
| 35 |
+
if "fix_mistral_regex" in data:
|
| 36 |
+
tmpdir = Path(tempfile.mkdtemp(prefix="openmed_onnx_tokenizer_"))
|
| 37 |
+
keep = {"tokenizer_config.json", "tokenizer.json", "special_tokens_map.json", "vocab.txt"}
|
| 38 |
+
for child in tokenizer_path.iterdir():
|
| 39 |
+
if child.is_file() and child.name in keep:
|
| 40 |
+
(tmpdir / child.name).write_bytes(child.read_bytes())
|
| 41 |
+
data.pop("fix_mistral_regex", None)
|
| 42 |
+
(tmpdir / "tokenizer_config.json").write_text(json.dumps(data, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
|
| 43 |
+
tokenizer_ref = str(tmpdir)
|
| 44 |
+
try:
|
| 45 |
+
return AutoTokenizer.from_pretrained(tokenizer_ref, use_fast=True, fix_mistral_regex=True)
|
| 46 |
+
except Exception:
|
| 47 |
+
try:
|
| 48 |
+
return AutoTokenizer.from_pretrained(tokenizer_ref, use_fast=True, fix_mistral_regex=False)
|
| 49 |
+
except TypeError:
|
| 50 |
+
return AutoTokenizer.from_pretrained(tokenizer_ref, use_fast=True)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def load_onnx_token_classifier(model_ref: str, onnx_file: str | None = None):
|
| 54 |
+
import onnxruntime as ort
|
| 55 |
+
model_path = Path(model_ref)
|
| 56 |
+
if model_path.exists():
|
| 57 |
+
candidates = [onnx_file] if onnx_file else []
|
| 58 |
+
candidates += DEFAULT_ONNX_FILES
|
| 59 |
+
onnx_path = None
|
| 60 |
+
for candidate in candidates:
|
| 61 |
+
if not candidate:
|
| 62 |
+
continue
|
| 63 |
+
path = model_path / candidate
|
| 64 |
+
if path.exists():
|
| 65 |
+
onnx_path = path
|
| 66 |
+
break
|
| 67 |
+
if onnx_path is None:
|
| 68 |
+
raise FileNotFoundError("Missing ONNX artifact")
|
| 69 |
+
config = AutoConfig.from_pretrained(model_ref)
|
| 70 |
+
tokenizer = _load_tokenizer(model_ref)
|
| 71 |
+
else:
|
| 72 |
+
api = HfApi()
|
| 73 |
+
files = set(api.list_repo_files(repo_id=model_ref, repo_type="model"))
|
| 74 |
+
chosen = None
|
| 75 |
+
candidates = [onnx_file] if onnx_file else []
|
| 76 |
+
candidates += DEFAULT_ONNX_FILES
|
| 77 |
+
for candidate in candidates:
|
| 78 |
+
if candidate and candidate in files:
|
| 79 |
+
chosen = candidate
|
| 80 |
+
break
|
| 81 |
+
if chosen is None:
|
| 82 |
+
raise FileNotFoundError("No ONNX artifact published")
|
| 83 |
+
onnx_path = Path(hf_hub_download(repo_id=model_ref, filename=chosen, repo_type="model"))
|
| 84 |
+
config = AutoConfig.from_pretrained(model_ref)
|
| 85 |
+
tokenizer = _load_tokenizer(model_ref)
|
| 86 |
+
session = ort.InferenceSession(str(onnx_path), providers=["CPUExecutionProvider"])
|
| 87 |
+
return session, tokenizer, config
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
def _softmax(logits):
|
| 91 |
+
shifted = logits - np.max(logits, axis=-1, keepdims=True)
|
| 92 |
+
exp = np.exp(shifted)
|
| 93 |
+
return exp / np.clip(np.sum(exp, axis=-1, keepdims=True), 1e-12, None)
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def _run(session, encoded):
|
| 97 |
+
input_names = {item.name for item in session.get_inputs()}
|
| 98 |
+
feed = {}
|
| 99 |
+
for key, value in encoded.items():
|
| 100 |
+
if key == "offset_mapping":
|
| 101 |
+
continue
|
| 102 |
+
if key in input_names:
|
| 103 |
+
feed[key] = value
|
| 104 |
+
return session.run(None, feed)[0]
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
def normalize_label(label: str) -> str:
|
| 108 |
+
label = (label or "").strip()
|
| 109 |
+
if label.startswith("B-") or label.startswith("I-"):
|
| 110 |
+
label = label[2:]
|
| 111 |
+
return label.upper()
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def looks_like_eircode(value: str) -> bool:
|
| 115 |
+
return EIRCODE_RE.match(value.strip()) is not None
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
def ppsn_label_ids_from_config(config):
|
| 119 |
+
ids = []
|
| 120 |
+
for raw_id, raw_label in config.id2label.items():
|
| 121 |
+
label_id = int(raw_id)
|
| 122 |
+
label = str(raw_label or "").strip()
|
| 123 |
+
if label.endswith("PPSN"):
|
| 124 |
+
ids.append(label_id)
|
| 125 |
+
return sorted(ids)
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def simple_aggregate_spans_onnx(text, session, tokenizer, config, min_score=0.5):
|
| 129 |
+
encoded = tokenizer(text, return_offsets_mapping=True, return_tensors="np", truncation=True)
|
| 130 |
+
logits = _run(session, encoded)[0]
|
| 131 |
+
probs = _softmax(logits)
|
| 132 |
+
pred_ids = probs.argmax(axis=-1)
|
| 133 |
+
id2label = {int(k): v for k, v in config.id2label.items()}
|
| 134 |
+
offsets = encoded["offset_mapping"][0].tolist()
|
| 135 |
+
attention = encoded["attention_mask"][0].tolist()
|
| 136 |
+
spans = []
|
| 137 |
+
active = None
|
| 138 |
+
for idx, ((start, end), keep) in enumerate(zip(offsets, attention)):
|
| 139 |
+
if not keep or start == end:
|
| 140 |
+
if active is not None:
|
| 141 |
+
spans.append(active)
|
| 142 |
+
active = None
|
| 143 |
+
continue
|
| 144 |
+
label = id2label[int(pred_ids[idx])]
|
| 145 |
+
if label == "O":
|
| 146 |
+
if active is not None:
|
| 147 |
+
spans.append(active)
|
| 148 |
+
active = None
|
| 149 |
+
continue
|
| 150 |
+
score = float(probs[idx, int(pred_ids[idx])])
|
| 151 |
+
if score < min_score:
|
| 152 |
+
if active is not None:
|
| 153 |
+
spans.append(active)
|
| 154 |
+
active = None
|
| 155 |
+
continue
|
| 156 |
+
prefix = label[:1] if label.startswith(("B-", "I-")) else "B"
|
| 157 |
+
entity = normalize_label(label)
|
| 158 |
+
if active is None or prefix == "B" or entity != active["label"] or int(start) > int(active["end"]) + 1:
|
| 159 |
+
if active is not None:
|
| 160 |
+
spans.append(active)
|
| 161 |
+
active = {"label": entity, "start": int(start), "end": int(end), "score": score}
|
| 162 |
+
else:
|
| 163 |
+
active["end"] = int(end)
|
| 164 |
+
active["score"] = max(float(active["score"]), score)
|
| 165 |
+
if active is not None:
|
| 166 |
+
spans.append(active)
|
| 167 |
+
for span in spans:
|
| 168 |
+
span["text"] = text[span["start"]:span["end"]]
|
| 169 |
+
return spans
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
def word_aligned_ppsn_spans_onnx(text, session, tokenizer, config, threshold=0.4):
|
| 173 |
+
pieces = tokenize_with_spans(text)
|
| 174 |
+
if not pieces:
|
| 175 |
+
return []
|
| 176 |
+
words = [word for word, _, _ in pieces]
|
| 177 |
+
encoded = tokenizer(words, is_split_into_words=True, return_tensors="np", truncation=True)
|
| 178 |
+
word_ids = encoded.word_ids(batch_index=0)
|
| 179 |
+
logits = _run(session, encoded)[0]
|
| 180 |
+
probs = _softmax(logits)
|
| 181 |
+
label_ids = ppsn_label_ids_from_config(config)
|
| 182 |
+
word_scores = []
|
| 183 |
+
for word_index in range(len(pieces)):
|
| 184 |
+
score = 0.0
|
| 185 |
+
for token_index, wid in enumerate(word_ids):
|
| 186 |
+
if wid != word_index:
|
| 187 |
+
continue
|
| 188 |
+
for label_id in label_ids:
|
| 189 |
+
score = max(score, float(probs[token_index, label_id]))
|
| 190 |
+
word_scores.append(score)
|
| 191 |
+
spans = []
|
| 192 |
+
active = None
|
| 193 |
+
for (_, start, end), score in zip(pieces, word_scores):
|
| 194 |
+
if score >= threshold:
|
| 195 |
+
if active is None:
|
| 196 |
+
active = {"label": "PPSN", "start": start, "end": end, "score": score}
|
| 197 |
+
else:
|
| 198 |
+
active["end"] = end
|
| 199 |
+
active["score"] = max(float(active["score"]), score)
|
| 200 |
+
elif active is not None:
|
| 201 |
+
spans.append(active)
|
| 202 |
+
active = None
|
| 203 |
+
if active is not None:
|
| 204 |
+
spans.append(active)
|
| 205 |
+
for span in spans:
|
| 206 |
+
span["text"] = text[span["start"]:span["end"]]
|
| 207 |
+
return spans
|
pyproject.toml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "openmed-mliteclinical-irishcorepii-rc"
|
| 3 |
+
version = "0.2.0rc3"
|
| 4 |
+
description = "Third QA release candidate for Irish core PII detection with OpenMed mLiteClinical"
|
| 5 |
+
requires-python = ">=3.10"
|
| 6 |
+
readme = "README.md"
|
| 7 |
+
license = { text = "Apache-2.0" }
|
| 8 |
+
dependencies = [
|
| 9 |
+
"transformers>=4.41.0",
|
| 10 |
+
"torch",
|
| 11 |
+
"regex>=2024.5.15",
|
| 12 |
+
"onnxruntime>=1.20.0",
|
| 13 |
+
"numpy>=1.26.0",
|
| 14 |
+
"huggingface_hub>=0.36.0",
|
| 15 |
+
]
|
| 16 |
+
|
| 17 |
+
[tool.uv]
|
| 18 |
+
package = false
|
qa_config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo_id": "temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc3",
|
| 3 |
+
"recommended_inference": {
|
| 4 |
+
"full_checkpoint": {
|
| 5 |
+
"ppsn_decoder": "word_aligned",
|
| 6 |
+
"ppsn_min_score": 0.55,
|
| 7 |
+
"other_min_score": 0.4,
|
| 8 |
+
"device": "cpu",
|
| 9 |
+
"script": "inference_mask.py"
|
| 10 |
+
},
|
| 11 |
+
"onnx_q8": {
|
| 12 |
+
"ppsn_decoder": "word_aligned",
|
| 13 |
+
"ppsn_min_score": 0.6,
|
| 14 |
+
"other_min_score": 0.45,
|
| 15 |
+
"device": "cpu",
|
| 16 |
+
"onnx_artifact": "onnx/model_quantized.onnx",
|
| 17 |
+
"script": "inference_mask_onnx.py"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"smoke_texts": [
|
| 21 |
+
"I was told to provide my number 1234567T when applying, what do I do next?",
|
| 22 |
+
"My sort code is 90-00-17 for AIB.",
|
| 23 |
+
"Please provide your passport: NN5123456.",
|
| 24 |
+
"Call me on 0851234567 tomorrow.",
|
| 25 |
+
"My Eircode is D02 X285 and my phone is 087 123 4567."
|
| 26 |
+
],
|
| 27 |
+
"known_limit_texts": [
|
| 28 |
+
"Passport PA 1234567 was used to board the flight.",
|
| 29 |
+
"Usaideadh pas PA 1234567 chun dul ar bord an eitilt."
|
| 30 |
+
]
|
| 31 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": {
|
| 3 |
+
"content": "[CLS]",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"mask_token": {
|
| 10 |
+
"content": "[MASK]",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "[PAD]",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"sep_token": {
|
| 24 |
+
"content": "[SEP]",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"unk_token": {
|
| 31 |
+
"content": "[UNK]",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
}
|
| 37 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[PAD]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"100": {
|
| 12 |
+
"content": "[UNK]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"101": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"102": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"103": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"clean_up_tokenization_spaces": false,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_lower_case": false,
|
| 47 |
+
"extra_special_tokens": {},
|
| 48 |
+
"fix_mistral_regex": true,
|
| 49 |
+
"mask_token": "[MASK]",
|
| 50 |
+
"max_length": 512,
|
| 51 |
+
"model_max_length": 512,
|
| 52 |
+
"pad_token": "[PAD]",
|
| 53 |
+
"sep_token": "[SEP]",
|
| 54 |
+
"stride": 0,
|
| 55 |
+
"strip_accents": null,
|
| 56 |
+
"tokenize_chinese_chars": true,
|
| 57 |
+
"tokenizer_class": "DistilBertTokenizer",
|
| 58 |
+
"truncation_side": "right",
|
| 59 |
+
"truncation_strategy": "longest_first",
|
| 60 |
+
"unk_token": "[UNK]"
|
| 61 |
+
}
|
training_sources.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model": "OpenMed/OpenMed-PII-mLiteClinical-Base-135M-v1",
|
| 3 |
+
"current_public_reference": "temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v1",
|
| 4 |
+
"previous_rc_reference": "temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2",
|
| 5 |
+
"release_purpose": "Third v2 release candidate for the IrishCorePII line. This round improves the model across the board: stronger English and Irish core PII, exact QA regressions, multilingual PPSN precision, and a stronger bundled ONNX q8 artifact.",
|
| 6 |
+
"recommended_thresholds": {
|
| 7 |
+
"full_checkpoint": {
|
| 8 |
+
"ppsn_min_score": 0.55,
|
| 9 |
+
"other_min_score": 0.4
|
| 10 |
+
},
|
| 11 |
+
"onnx_q8": {
|
| 12 |
+
"ppsn_min_score": 0.6,
|
| 13 |
+
"other_min_score": 0.45
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
"training_mix_summary": [
|
| 17 |
+
{
|
| 18 |
+
"component": "previous Irish core release mix replay",
|
| 19 |
+
"weight": 4.0
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"component": "spec-driven Irish boundary and format dataset for passports, compact mobiles, Eircodes, sort codes, cards, and PPSN/Eircode confusions",
|
| 23 |
+
"weight": 2.5
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"component": "exact QA and user feedback replay from numeric, gap, PPSN, and edge suites",
|
| 27 |
+
"weight": 2.0
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"component": "multilingual PPSN replay",
|
| 31 |
+
"weight": 1.5
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"component": "weak-context PPSN recovery replay",
|
| 35 |
+
"weight": 1.5
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"component": "spec-valid PPSN and Eircode synthetic mix",
|
| 39 |
+
"weight": 1.5
|
| 40 |
+
}
|
| 41 |
+
],
|
| 42 |
+
"upstream_attribution": [
|
| 43 |
+
{
|
| 44 |
+
"name": "joelniklaus/mapa",
|
| 45 |
+
"license": "CC-BY-4.0"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"name": "gretelai/synthetic_pii_finance_multilingual",
|
| 49 |
+
"license": "Apache-2.0"
|
| 50 |
+
}
|
| 51 |
+
],
|
| 52 |
+
"quantization_notes": {
|
| 53 |
+
"promoted_q8_recipe": "ONNX Runtime dynamic int8 with per-channel quantization over MatMul,Gemm,Attention",
|
| 54 |
+
"rejected_recipes": [
|
| 55 |
+
"MatMul,Gemm-only dynamic int8: faster on some suites, but lower multilingual PPSN quality",
|
| 56 |
+
"MatMul,Gemm-only dynamic int8 with reduce_range: quality regressed further"
|
| 57 |
+
],
|
| 58 |
+
"not_promoted": [
|
| 59 |
+
"QAT in this DistilBERT token-classification stack",
|
| 60 |
+
"Mezzanine Qwen-focused weight transforms"
|
| 61 |
+
]
|
| 62 |
+
},
|
| 63 |
+
"known_limitations": [
|
| 64 |
+
"The full checkpoint can still trim the final digit in some short English compact-phone contexts such as \"Call me on 0851234567 tomorrow.\"",
|
| 65 |
+
"Passport values written as prefix plus space plus digits are still the main strict-boundary failure mode.",
|
| 66 |
+
"The Irish Gaelic spaced-passport case remains weak in raw-model mode.",
|
| 67 |
+
"Multilingual PPSN quality is stronger than temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v2-rc2, but still below the PPSN-focused public release temsa/OpenMed-mLiteClinical-IrishCorePII-135M-v1."
|
| 68 |
+
]
|
| 69 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|