toygar77 commited on
Commit
c97cff0
1 Parent(s): ee84ded

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -4
README.md CHANGED
@@ -1,4 +1,5 @@
1
- DATASET
2
- MilliyetNER dataset was collected from the Turkish Milliyet newspaper articles between 1997-1998. This dataset is presented by Tür et al. (2003). It was collected from news articles and manually annotated with three different entity types: Person, Location, Organization. The authors did not provide training/validation/test splits for this dataset. Dataset splits used by Yeniterzi et al. 2011.
3
- For more information: tdd.ai - MilliyetNER
4
- Model is only trained using training set. Test set not included during the last training.
 
 
1
+ from transformers import pipeline, AutoModelForTokenClassification, AutoTokenizer
2
+ model = AutoModelForTokenClassification.from_pretrained("alierenak/berturk-cased-ner")
3
+ tokenizer = AutoTokenizer.from_pretrained("alierenak/berturk-cased-ner")
4
+ ner_pipeline = pipeline('ner', model=model, tokenizer=tokenizer)
5
+ ner_pipeline("Türkiye'nin başkenti Ankara, ilk cumhurbaşkanı Mustafa Kemal Atatürk'tür.")