Downloads · 30 days
9
23% of all-time downloads
SuccubusBot/distilbert-incoherence-classifier
distilbert-incoherence-classifier is a text classification model from SuccubusBot. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
This is a fine-tuned DistilBERT model for classifying text based on its coherence. It can identify various types of incoherence.
Downloads · 30 days
9
23% of all-time downloads
All-time downloads
39
Public
Parameters
67M
2.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.6 GB · 60%
From the Hugging Face model README
This is a fine-tuned DistilBERT model for classifying text based on its coherence. It can identify various types of incoherence.
| Epoch | Training Loss | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| 1 | 0.037500 | 0.071958 | 0.984995 | 0.985002 | 0.984995 | 0.984564 |
| 2 | 0.008900 | 0.068670 | 0.985995 | 0.985973 | 0.985995 | 0.985603 |
| 3 | 0.008500 | 0.058111 | 0.990330 | 0.990260 | 0.990330 | 0.990262 |
The following metrics were measured on the test set:
| Metric | Value |
|---|---|
| Loss | 0.049511 |
| Accuracy | 0.991 |
| Precision | 0.990958 |
| Recall | 0.991 |
| F1-Score | 0.990962 |
precision recall f1-score support
coherent 0.99 0.99 0.99 1500
grammatical_errors 0.96 0.94 0.95 250
random_bytes 1.00 1.00 1.00 250
random_tokens 1.00 1.00 1.00 250
random_words 1.00 1.00 1.00 250
run_on 1.00 0.99 1.00 250
word_soup 1.00 1.00 1.00 250
accuracy 0.99 3000
macro avg 0.99 0.99 0.99 3000
weighted avg 0.99 0.99 0.99 3000

The confusion matrix above shows the performance of the model on each class.
This model can be used for text classification tasks, specifically for detecting and categorizing different types of text incoherence. You can use the inference_example function provided in the notebook to test your own text.
The model has been trained on a generated dataset, so care must be taken in evaluating it in the real world. More data may need to be collected before evaluating this model in a real-world setting.
CC-BY-SA 4.0