File size: 2,801 Bytes
a7699a1 1240aea a7699a1 1240aea |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
---
license: mit
base_model: tanaos/tanaos-text-anonymizer-v1
tags:
- ner
- pii
- onnx
- token-classification
- named-entity-recognition
language:
- en
library_name: onnx
---
# RuleSentry Core PII
ONNX export of [tanaos/tanaos-text-anonymizer-v1](https://huggingface.co/tanaos/tanaos-text-anonymizer-v1) for local PII detection in RuleSentry Desktop.
## Attribution
This model is an ONNX conversion of **tanaos-text-anonymizer-v1** by [tanaos](https://huggingface.co/tanaos).
We converted it to ONNX format for efficient CPU/GPU inference without Python dependencies.
Original model: https://huggingface.co/tanaos/tanaos-text-anonymizer-v1
## Supported Entity Types
| Entity | Example |
|--------|---------|
| PERSON | "John Douglas" |
| LOCATION | "New York" |
| DATE | "January 15, 2024" |
| ADDRESS | "123 Main St, Suite 400" |
| PHONE_NUMBER | "(555) 123-4567" |
## Model Files
- `model.onnx` - ONNX model (~496 MB)
- `tokenizer.json` - Tokenizer configuration
- `config.json` - Model configuration
- `labels.json` - NER label mappings
- `vocab.json` - Vocabulary
- `merges.txt` - BPE merges
## Usage
This model is designed for use with [RuleSentry Desktop](https://rulesentry.com) for local, privacy-preserving document anonymization.
### With ONNX Runtime (Rust)
```rust
use ort::{Session, SessionBuilder};
let session = SessionBuilder::new()?
.with_model_from_file("model.onnx")?;
```
### With ONNX Runtime (Python)
```python
import onnxruntime as ort
session = ort.InferenceSession("model.onnx")
```
## License
MIT License - Same as the original model.
Copyright (c) 2024 tanaos (original model)
Copyright (c) 2024 RuleSentry (ONNX conversion)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|