microsoft/xglue
Updated • 258 • 27
How to use aimarsg/bert-finetuned-ner-1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="aimarsg/bert-finetuned-ner-1") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("aimarsg/bert-finetuned-ner-1")
model = AutoModelForTokenClassification.from_pretrained("aimarsg/bert-finetuned-ner-1")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("aimarsg/bert-finetuned-ner-1")
model = AutoModelForTokenClassification.from_pretrained("aimarsg/bert-finetuned-ner-1")This model is a fine-tuned version of bert-base-cased on the xglue dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 191 | 0.2359 | 0.5659 | 0.6309 | 0.5967 | 0.9397 |
| No log | 2.0 | 382 | 0.2136 | 0.5754 | 0.6681 | 0.6183 | 0.9464 |
| 0.1605 | 3.0 | 573 | 0.2202 | 0.6038 | 0.6720 | 0.6361 | 0.9489 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="aimarsg/bert-finetuned-ner-1")