unimelb-nlp/wikiann
Viewer • Updated • 2M • 44.3k • 121
How to use terhdavid/wiki_hu_ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="terhdavid/wiki_hu_ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("terhdavid/wiki_hu_ner")
model = AutoModelForTokenClassification.from_pretrained("terhdavid/wiki_hu_ner")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("terhdavid/wiki_hu_ner")
model = AutoModelForTokenClassification.from_pretrained("terhdavid/wiki_hu_ner")This model is a fine-tuned version of distilbert-base-uncased on the wikiann 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 |
|---|---|---|---|---|---|---|---|
| 0.2429 | 1.0 | 1250 | 0.1849 | 0.8047 | 0.8153 | 0.8100 | 0.9448 |
| 0.1371 | 2.0 | 2500 | 0.1505 | 0.8455 | 0.8577 | 0.8516 | 0.9576 |
| 0.0986 | 3.0 | 3750 | 0.1516 | 0.8520 | 0.8708 | 0.8613 | 0.9603 |
| 0.0695 | 4.0 | 5000 | 0.1500 | 0.8656 | 0.8745 | 0.8700 | 0.9624 |
| 0.0489 | 5.0 | 6250 | 0.1585 | 0.8669 | 0.8782 | 0.8725 | 0.9632 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="terhdavid/wiki_hu_ner")