Instructions to use AlexMaclean/sentence-compression with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlexMaclean/sentence-compression with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="AlexMaclean/sentence-compression", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("AlexMaclean/sentence-compression") model = AutoModelForTokenClassification.from_pretrained("AlexMaclean/sentence-compression", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Alex MacLean commited on
Commit ·
d0bd058
1
Parent(s): ecb9718
update model card README.md
Browse files
README.md
CHANGED
|
@@ -19,11 +19,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 19 |
|
| 20 |
This model is a fine-tuned version of [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on an unknown dataset.
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
-
- Loss: 0.
|
| 23 |
-
- Accuracy: 0.
|
| 24 |
-
- F1: 0.
|
| 25 |
-
- Precision: 0.
|
| 26 |
-
- Recall: 0.
|
| 27 |
|
| 28 |
## Model description
|
| 29 |
|
|
@@ -53,11 +53,11 @@ The following hyperparameters were used during training:
|
|
| 53 |
|
| 54 |
### Training results
|
| 55 |
|
| 56 |
-
| Training Loss | Epoch | Step
|
| 57 |
-
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.
|
| 60 |
-
| 0.
|
| 61 |
|
| 62 |
|
| 63 |
### Framework versions
|
|
|
|
| 19 |
|
| 20 |
This model is a fine-tuned version of [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on an unknown dataset.
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 0.2973
|
| 23 |
+
- Accuracy: 0.8912
|
| 24 |
+
- F1: 0.8367
|
| 25 |
+
- Precision: 0.8495
|
| 26 |
+
- Recall: 0.8243
|
| 27 |
|
| 28 |
## Model description
|
| 29 |
|
|
|
|
| 53 |
|
| 54 |
### Training results
|
| 55 |
|
| 56 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
| 57 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
| 58 |
+
| 0.2686 | 1.0 | 10000 | 0.2667 | 0.8894 | 0.8283 | 0.8725 | 0.7884 |
|
| 59 |
+
| 0.2205 | 2.0 | 20000 | 0.2704 | 0.8925 | 0.8372 | 0.8579 | 0.8175 |
|
| 60 |
+
| 0.1476 | 3.0 | 30000 | 0.2973 | 0.8912 | 0.8367 | 0.8495 | 0.8243 |
|
| 61 |
|
| 62 |
|
| 63 |
### Framework versions
|