Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
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.")
|