ashaduzzaman commited on
Commit
dc83d6f
·
verified ·
1 Parent(s): 6c07482

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +58 -33
README.md CHANGED
@@ -35,47 +35,74 @@ model-index:
35
  - name: Accuracy
36
  type: accuracy
37
  value: 0.9443803172160232
 
 
 
 
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
  # wnut-distilbert-finetuned
44
 
45
- This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on the wnut_17 dataset.
46
- It achieves the following results on the evaluation set:
47
- - Loss: 0.2704
48
- - Precision: 0.5336
49
- - Recall: 0.3383
50
- - F1: 0.4141
51
- - Accuracy: 0.9444
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: 3
77
 
78
- ### Training results
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
 
80
  | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
81
  |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
@@ -83,10 +110,8 @@ The following hyperparameters were used during training:
83
  | No log | 2.0 | 426 | 0.2627 | 0.5398 | 0.3327 | 0.4117 | 0.9434 |
84
  | 0.1832 | 3.0 | 639 | 0.2704 | 0.5336 | 0.3383 | 0.4141 | 0.9444 |
85
 
86
-
87
- ### Framework versions
88
-
89
- - Transformers 4.42.4
90
- - Pytorch 2.3.1+cu121
91
- - Datasets 2.21.0
92
- - Tokenizers 0.19.1
 
35
  - name: Accuracy
36
  type: accuracy
37
  value: 0.9443803172160232
38
+ language:
39
+ - en
40
+ library_name: adapter-transformers
41
+ pipeline_tag: token-classification
42
  ---
43
 
44
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->
 
45
 
46
  # wnut-distilbert-finetuned
47
 
48
+ This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on the WNUT 2017 dataset for Named Entity Recognition (NER).
 
 
 
 
 
 
49
 
50
+ ## Model Description
51
 
52
+ The `wnut-distilbert-finetuned` model is designed for token classification tasks, specifically for Named Entity Recognition (NER). It leverages the DistilBERT architecture, which is a smaller, faster version of BERT with reduced computational requirements, while maintaining competitive performance.
53
 
54
+ ## Intended Uses & Limitations
55
 
56
+ ### Intended Uses
57
+ - **Named Entity Recognition (NER)**: Extract and classify entities such as names, locations, organizations, etc., from text.
58
+ - **Text Analysis**: Enhance applications in information extraction, question answering, and text understanding.
59
 
60
+ ### How to Use
61
+ To use this model, you can load it using the Hugging Face Transformers library. Below is an example of how to perform inference using the model:
62
 
63
+ ```python
64
+ from transformers import AutoTokenizer, AutoModelForTokenClassification
65
+ from transformers import pipeline
66
 
67
+ # Load the tokenizer and model
68
+ tokenizer = AutoTokenizer.from_pretrained("Ashaduzzaman/wnut-distilbert-finetuned")
69
+ model = AutoModelForTokenClassification.from_pretrained("Ashaduzzaman/bert-finetuned-ner")
70
 
71
+ # Create a pipeline for NER
72
+ ner_pipeline = pipeline("ner", model=model, tokenizer=tokenizer)
73
 
74
+ # Example inference
75
+ text = "Hugging Face Inc. is based in New York City."
76
+ entities = ner_pipeline(text)
 
 
 
 
 
77
 
78
+ print(entities)
79
+ ```
80
+ ### Limitations
81
+ - **Performance on Other Domains**: Performance may vary when applied to domains or data types different from the WNUT 2017 dataset.
82
+ - **Entity Types**: The model is trained on the specific entity types present in the WNUT 2017 dataset and may not perform well on entity types not covered by the training data.
83
+ - **Data Sensitivity**: The model may have biases or limitations based on the training data it was exposed to.
84
+
85
+ ## Training and Evaluation Data
86
+
87
+ ### Training Data
88
+ - **Dataset**: WNUT 2017, which includes a set of texts annotated with entities relevant to the dataset.
89
+ - **Data Split**: Training and validation splits of the WNUT 2017 dataset were used during the fine-tuning process.
90
+
91
+ ### Evaluation Data
92
+ - **Dataset**: WNUT 2017 test set, used to evaluate model performance after fine-tuning.
93
+
94
+ ## Training Procedure
95
+
96
+ ### Training Hyperparameters
97
+ - **Learning Rate**: 2e-05
98
+ - **Train Batch Size**: 16
99
+ - **Eval Batch Size**: 16
100
+ - **Seed**: 42
101
+ - **Optimizer**: Adam with betas=(0.9, 0.999) and epsilon=1e-08
102
+ - **Learning Rate Scheduler**: Linear
103
+ - **Number of Epochs**: 3
104
+
105
+ ### Training Results
106
 
107
  | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
108
  |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
 
110
  | No log | 2.0 | 426 | 0.2627 | 0.5398 | 0.3327 | 0.4117 | 0.9434 |
111
  | 0.1832 | 3.0 | 639 | 0.2704 | 0.5336 | 0.3383 | 0.4141 | 0.9444 |
112
 
113
+ ### Framework Versions
114
+ - **Transformers**: 4.42.4
115
+ - **Pytorch**: 2.3.1+cu121
116
+ - **Datasets**: 2.21.0
117
+ - **Tokenizers**: 0.19.1