Downloads · 30 days
667
23% of all-time downloads
saribasmetehan/bert-base-turkish-uncased-ner
bert-base-turkish-uncased-ner is a token classification model from saribasmetehan. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
667
23% of all-time downloads
All-time downloads
3K
Public
Parameters
110M
440 MB on disk
Likes
7
Public
Click a slice to open those files.
.safetensors440 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of dbmdz/bert-base-turkish-uncased on the turkish-wiki_ner dataset. It achieves the following results on the evaluation set:
This model is a fine-tuned version of dbmdz/bert-base-turkish-uncased on the turkish-wiki_ner dataset. The training dataset consists of 18,967 samples, and the validation dataset consists of 1,000 samples, both derived from Wikipedia data.
Labels:
<ul> <li>CARDINAL</li> <li>DATE</li> <li>EVENT</li> <li>FAC</li> <li>GPE</li> <li>LANGUAGE</li> <li>LAW</li> <li>LOC</li> <li>MONEY</li> <li>NORP</li> <li>ORDINAL</li> <li>ORG</li> <li>PERCENT</li> <li>PERSON</li> <li>PRODUCT</li> <li>QUANTITY</li> <li>TIME</li> <li>TITLE</li> <li>WORK_OF_ART</li> </ul>from transformers import pipeline
import pandas as pd
text = "Bu toplam sıfır ise, Newton'ın birinci yasası cismin hareket durumunun değişmeyeceğini söyler."
model_id = "saribasmetehan/bert-base-turkish-uncased-ner"
ner = pipeline("ner",model = model_id)
preds= ner(text, aggregation_strategy = "simple")
pd.DataFrame(preds)
from transformers import AutoModelForTokenClassification, AutoTokenizer
model_name = "saribasmetehan/bert-base-turkish-uncased-ner"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForTokenClassification.from_pretrained(model_name)
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 |
|---|---|---|---|---|
| 0.4 | 1.0 | 1186 | 0.2502 | 0.7703 |
| 0.2227 | 2.0 | 2372 | 0.2439 | 0.7740 |
| 0.1738 | 3.0 | 3558 | 0.2511 | 0.7783 |
| 0.1474 | 4.0 | 4744 | 0.2603 | 0.7821 |