eriktks/conll2003
Updated • 32k • 177
How to use JohnLei/bert-large-20-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="JohnLei/bert-large-20-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("JohnLei/bert-large-20-ner")
model = AutoModelForTokenClassification.from_pretrained("JohnLei/bert-large-20-ner", device_map="auto")This model is a fine-tuned version of bert-large-cased on the conll2003 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 | 25 | 0.7702 | 0.2857 | 0.0003 | 0.0007 | 0.8326 |
| No log | 2.0 | 50 | 0.6046 | 0.1537 | 0.0106 | 0.0198 | 0.8373 |
| No log | 3.0 | 75 | 0.5525 | 0.2643 | 0.0530 | 0.0883 | 0.8491 |
Base model
google-bert/bert-large-cased