Zero-Shot Classification
GLiNER2
Safetensors
English
Russian
extractor
safety
pii
ai-security
zero-shot
text-classification
span-categorization
token-classification
guardrails
Instructions to use hivetrace/gliner-guard-uniencoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use hivetrace/gliner-guard-uniencoder with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("hivetrace/gliner-guard-uniencoder") # 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -67,7 +67,6 @@ Thanks to zero-shot generalization, it can also handle custom labels outside the
|
|
| 67 |
| **Intent** | single-label | 13 | `informational` `adversarial` `threatening` `solicitation` |
|
| 68 |
| **Tone of Voice** | single-label | 10 | `neutral` `aggressive` `manipulative` `deceptive` |
|
| 69 |
|
| 70 |
-
---
|
| 71 |
<details>
|
| 72 |
<summary><b>Safety</b> — all 2 labels</summary>
|
| 73 |
|
|
|
|
| 67 |
| **Intent** | single-label | 13 | `informational` `adversarial` `threatening` `solicitation` |
|
| 68 |
| **Tone of Voice** | single-label | 10 | `neutral` `aggressive` `manipulative` `deceptive` |
|
| 69 |
|
|
|
|
| 70 |
<details>
|
| 71 |
<summary><b>Safety</b> — all 2 labels</summary>
|
| 72 |
|