Views
No views yet
ORG).O (outside),B-ORG (beginning of organization),I-ORG (inside organization).pipeline API for NER:1from transformers import pipeline
2
3model_id = "yeniguno/bert-turkish-organization-ner"
4
5ner = pipeline("ner", model=model_id, aggregation_strategy="simple")
6
7text = "Microsoft ve Koç Holding birlikte bir proje başlattı."
8
9print(ner(text))
10"""
11[{'entity_group': 'ORG', 'score': np.float32(0.99849355), 'word': 'microsoft', 'start': 0, 'end': 9},
12{'entity_group': 'ORG', 'score': np.float32(0.9970416), 'word': 'koc holding', 'start': 13, 'end': 24}]
13"""| Training Loss | Epoch | Step | Validation Loss | F1 |
|---|---|---|---|---|
| 0.0617 | 1.0 | 8080 | 0.0679 | 0.8990 |
| 0.0471 | 2.0 | 16160 | 0.0640 | 0.9105 |
| 0.0295 | 3.0 | 24240 | 0.0846 | 0.9110 |
| 0.0277 | 4.0 | 32320 | 0.0959 | 0.9153 |
| 0.0116 | 5.0 | 40400 | 0.1152 | 0.9159 |