Instructions to use DeTars/DeTars-PII-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use DeTars/DeTars-PII-v1 with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("DeTars/DeTars-PII-v1") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Download encoder.onnx from DeTars/DeTars-PII-v1: direct link, hf CLI and curl.
- Browser
- Download file 1.15 MB
-
https://huggingface.co/DeTars/DeTars-PII-v1/resolve/main/encoder.onnx
- Command line
-
hf download hf://DeTars/DeTars-PII-v1/encoder.onnx
-
curl -L -o encoder.onnx https://huggingface.co/DeTars/DeTars-PII-v1/resolve/main/encoder.onnx
1.15 MB
- Xet hash:
- da29872169e476d1b2210e1bbd5be712ce945cabf18c271ff0d671164becb0c7
- Size of remote file:
- 1.15 MB
- SHA256:
- b375b72eb596101e15e96eee7bc686d89e5efbdebd6b8e06a019295b8783de88
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.