Text Classification
Transformers
ONNX
Safetensors
Transformers.js
English
bert
Intel
Eval Results (legacy)
text-embeddings-inference
Instructions to use Intel/polite-guard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Intel/polite-guard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Intel/polite-guard")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Intel/polite-guard") model = AutoModelForSequenceClassification.from_pretrained("Intel/polite-guard") - Transformers.js
How to use Intel/polite-guard with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Intel/polite-guard'); - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,10 +20,10 @@ model-index:
|
|
| 20 |
metrics:
|
| 21 |
- name: Accuracy
|
| 22 |
type: accuracy
|
| 23 |
-
value:
|
| 24 |
- name: F1 Score
|
| 25 |
type: f1
|
| 26 |
-
value:
|
| 27 |
library_name: transformers
|
| 28 |
---
|
| 29 |
# Polite Guard
|
|
@@ -82,8 +82,8 @@ The code for the synthetic data generation and fine-tuning can be found [here](h
|
|
| 82 |
|
| 83 |
Here are the key performance metrics of the model on the test dataset containing both synthetic and manually annotated data:
|
| 84 |
|
| 85 |
-
- **Accuracy**:
|
| 86 |
-
- **F1-Score**:
|
| 87 |
|
| 88 |
## How to Use
|
| 89 |
|
|
|
|
| 20 |
metrics:
|
| 21 |
- name: Accuracy
|
| 22 |
type: accuracy
|
| 23 |
+
value: 92.2
|
| 24 |
- name: F1 Score
|
| 25 |
type: f1
|
| 26 |
+
value: 92.2
|
| 27 |
library_name: transformers
|
| 28 |
---
|
| 29 |
# Polite Guard
|
|
|
|
| 82 |
|
| 83 |
Here are the key performance metrics of the model on the test dataset containing both synthetic and manually annotated data:
|
| 84 |
|
| 85 |
+
- **Accuracy**: 92.2% on the Polite Guard test dataset.
|
| 86 |
+
- **F1-Score**: 92.2% on the Polite Guard test dataset.
|
| 87 |
|
| 88 |
## How to Use
|
| 89 |
|