Instructions to use DD0101/disfluency-large-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DD0101/disfluency-large-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="DD0101/disfluency-large-2")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("DD0101/disfluency-large-2") model = AutoModelForTokenClassification.from_pretrained("DD0101/disfluency-large-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- generated_from_trainer
|
| 4 |
+
metrics:
|
| 5 |
+
- precision
|
| 6 |
+
- recall
|
| 7 |
+
- f1
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: disfluency-large-2
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# disfluency-large-2
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [vinai/phobert-large](https://huggingface.co/vinai/phobert-large) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.0318
|
| 22 |
+
- Precision: 0.9837
|
| 23 |
+
- Recall: 0.9808
|
| 24 |
+
- F1: 0.9822
|
| 25 |
+
- Accuracy: 0.9946
|
| 26 |
+
|
| 27 |
+
## Model description
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Intended uses & limitations
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training and evaluation data
|
| 36 |
+
|
| 37 |
+
More information needed
|
| 38 |
+
|
| 39 |
+
## Training procedure
|
| 40 |
+
|
| 41 |
+
### Training hyperparameters
|
| 42 |
+
|
| 43 |
+
The following hyperparameters were used during training:
|
| 44 |
+
- learning_rate: 5e-05
|
| 45 |
+
- train_batch_size: 32
|
| 46 |
+
- eval_batch_size: 32
|
| 47 |
+
- seed: 42
|
| 48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 49 |
+
- lr_scheduler_type: linear
|
| 50 |
+
- num_epochs: 50
|
| 51 |
+
|
| 52 |
+
### Training results
|
| 53 |
+
|
| 54 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 55 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 56 |
+
| No log | 1.0 | 140 | 0.0439 | 0.9538 | 0.9561 | 0.9550 | 0.9890 |
|
| 57 |
+
| No log | 2.0 | 280 | 0.0314 | 0.9660 | 0.9736 | 0.9698 | 0.9906 |
|
| 58 |
+
| No log | 3.0 | 420 | 0.0394 | 0.9710 | 0.9651 | 0.9681 | 0.9909 |
|
| 59 |
+
| 0.1105 | 4.0 | 560 | 0.0320 | 0.9795 | 0.9784 | 0.9790 | 0.9929 |
|
| 60 |
+
| 0.1105 | 5.0 | 700 | 0.0450 | 0.9704 | 0.9657 | 0.9681 | 0.9904 |
|
| 61 |
+
| 0.1105 | 6.0 | 840 | 0.0463 | 0.9776 | 0.9694 | 0.9734 | 0.9911 |
|
| 62 |
+
| 0.1105 | 7.0 | 980 | 0.0480 | 0.9706 | 0.9712 | 0.9709 | 0.9909 |
|
| 63 |
+
| 0.0113 | 8.0 | 1120 | 0.0318 | 0.9837 | 0.9808 | 0.9822 | 0.9946 |
|
| 64 |
+
| 0.0113 | 9.0 | 1260 | 0.0419 | 0.9699 | 0.9669 | 0.9684 | 0.9915 |
|
| 65 |
+
| 0.0113 | 10.0 | 1400 | 0.0458 | 0.9735 | 0.9712 | 0.9723 | 0.9920 |
|
| 66 |
+
| 0.0051 | 11.0 | 1540 | 0.0309 | 0.9777 | 0.9766 | 0.9771 | 0.9935 |
|
| 67 |
+
| 0.0051 | 12.0 | 1680 | 0.0232 | 0.9820 | 0.9820 | 0.9820 | 0.9951 |
|
| 68 |
+
| 0.0051 | 13.0 | 1820 | 0.0344 | 0.9849 | 0.9784 | 0.9816 | 0.9945 |
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
### Framework versions
|
| 72 |
+
|
| 73 |
+
- Transformers 4.29.2
|
| 74 |
+
- Pytorch 2.0.0+cu118
|
| 75 |
+
- Datasets 2.12.0
|
| 76 |
+
- Tokenizers 0.13.3
|