Downloads · 30 days
20
43% of all-time downloads
erythropygia/bert-turkish-entityrecognition
bert-turkish-entityrecognition is a token classification model from erythropygia. 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.
This model detects name-entity on <bTurkish texts</b. It tags the words Person, Location, Organization.
Downloads · 30 days
20
43% of all-time downloads
All-time downloads
47
Public
Repo size
880 MB
Likes
0
Public
Click a slice to open those files.
.bin440 MB · 100%
From the Hugging Face model README
This model detects name-entity on <b>Turkish texts</b>. It tags the words Person, Location, Organization.
The model usage is as follows:
import torch
from transformers import AutoModelForTokenClassification, AutoTokenizer, AutoConfig, pipeline
config_ner = AutoConfig.from_pretrained("erythropygia/bert-turkish-entityrecognition")
model_ner = AutoModelForTokenClassification.from_pretrained("erythropygia/bert-turkish-entityrecognition",config=config_ner)
tokenizer_ner= AutoTokenizer.from_pretrained("erythropygia/bert-turkish-entityrecognition")
device = torch.device('cpu') #or 'cuda'
ner_pipeline = pipeline(
task='ner',
model=model_ner,
tokenizer=tokenizer_ner,
framework='pt',
#device=device
)
input = "Bugün Fenerbahçe maçına gideceğim. Maçtan sonra Mehmet Yıldırım'la Bostancıda buluşacağım"
ner_result = ner_pipeline(input)
print(ner_result)