Instructions to use anyuanay/my_finetuned_wnut_model_1012 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anyuanay/my_finetuned_wnut_model_1012 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="anyuanay/my_finetuned_wnut_model_1012")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("anyuanay/my_finetuned_wnut_model_1012") model = AutoModelForTokenClassification.from_pretrained("anyuanay/my_finetuned_wnut_model_1012") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +91 -0
- pytorch_model.bin +1 -1
README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: dslim/bert-base-NER
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- wnut_17
|
| 8 |
+
metrics:
|
| 9 |
+
- precision
|
| 10 |
+
- recall
|
| 11 |
+
- f1
|
| 12 |
+
- accuracy
|
| 13 |
+
model-index:
|
| 14 |
+
- name: my_finetuned_wnut_model_1012
|
| 15 |
+
results:
|
| 16 |
+
- task:
|
| 17 |
+
name: Token Classification
|
| 18 |
+
type: token-classification
|
| 19 |
+
dataset:
|
| 20 |
+
name: wnut_17
|
| 21 |
+
type: wnut_17
|
| 22 |
+
config: wnut_17
|
| 23 |
+
split: test
|
| 24 |
+
args: wnut_17
|
| 25 |
+
metrics:
|
| 26 |
+
- name: Precision
|
| 27 |
+
type: precision
|
| 28 |
+
value: 0.5479274611398963
|
| 29 |
+
- name: Recall
|
| 30 |
+
type: recall
|
| 31 |
+
value: 0.39202965708989806
|
| 32 |
+
- name: F1
|
| 33 |
+
type: f1
|
| 34 |
+
value: 0.45705024311183146
|
| 35 |
+
- name: Accuracy
|
| 36 |
+
type: accuracy
|
| 37 |
+
value: 0.9487047961015646
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 41 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 42 |
+
|
| 43 |
+
# my_finetuned_wnut_model_1012
|
| 44 |
+
|
| 45 |
+
This model is a fine-tuned version of [dslim/bert-base-NER](https://huggingface.co/dslim/bert-base-NER) on the wnut_17 dataset.
|
| 46 |
+
It achieves the following results on the evaluation set:
|
| 47 |
+
- Loss: 0.2940
|
| 48 |
+
- Precision: 0.5479
|
| 49 |
+
- Recall: 0.3920
|
| 50 |
+
- F1: 0.4571
|
| 51 |
+
- Accuracy: 0.9487
|
| 52 |
+
|
| 53 |
+
## Model description
|
| 54 |
+
|
| 55 |
+
More information needed
|
| 56 |
+
|
| 57 |
+
## Intended uses & limitations
|
| 58 |
+
|
| 59 |
+
More information needed
|
| 60 |
+
|
| 61 |
+
## Training and evaluation data
|
| 62 |
+
|
| 63 |
+
More information needed
|
| 64 |
+
|
| 65 |
+
## Training procedure
|
| 66 |
+
|
| 67 |
+
### Training hyperparameters
|
| 68 |
+
|
| 69 |
+
The following hyperparameters were used during training:
|
| 70 |
+
- learning_rate: 2e-05
|
| 71 |
+
- train_batch_size: 16
|
| 72 |
+
- eval_batch_size: 16
|
| 73 |
+
- seed: 42
|
| 74 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 75 |
+
- lr_scheduler_type: linear
|
| 76 |
+
- num_epochs: 2
|
| 77 |
+
|
| 78 |
+
### Training results
|
| 79 |
+
|
| 80 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 81 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 82 |
+
| No log | 1.0 | 213 | 0.2657 | 0.5157 | 0.3967 | 0.4484 | 0.9468 |
|
| 83 |
+
| No log | 2.0 | 426 | 0.2940 | 0.5479 | 0.3920 | 0.4571 | 0.9487 |
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
### Framework versions
|
| 87 |
+
|
| 88 |
+
- Transformers 4.34.0
|
| 89 |
+
- Pytorch 2.0.1+cu118
|
| 90 |
+
- Datasets 2.14.5
|
| 91 |
+
- Tokenizers 0.14.1
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 430986409
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:941248f91f7b5648c193ee625b265f2f8d8162ce42f9237bbf2b5d06a0b77991
|
| 3 |
size 430986409
|