Commit
•
baa45e0
1
Parent(s):
f9d7b79
Update README.md
Browse files
README.md
CHANGED
@@ -27,7 +27,7 @@ datasets:
|
|
27 |
|
28 |
# A Named Entity Recognition Model for Kazakh
|
29 |
- The model was inspired by the [LREC 2022](https://lrec2022.lrec-conf.org/en/) paper [*KazNERD: Kazakh Named Entity Recognition Dataset*](https://aclanthology.org/2022.lrec-1.44).
|
30 |
-
- The model was trained for 3 epochs on [*
|
31 |
- The original repository for the paper can be found at *https://github.com/IS2AI/KazNERD*.
|
32 |
|
33 |
## How to use
|
@@ -37,8 +37,8 @@ You can use this model with the Transformers pipeline for NER.
|
|
37 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
38 |
from transformers import pipeline
|
39 |
|
40 |
-
tokenizer = AutoTokenizer.from_pretrained("yeshpanovrustem/
|
41 |
-
model = AutoModelForTokenClassification.from_pretrained("yeshpanovrustem/
|
42 |
|
43 |
nlp = pipeline("ner", model = model, tokenizer = tokenizer)
|
44 |
example = "Қазақстан Республикасы — Шығыс Еуропа мен Орталық Азияда орналасқан мемлекет."
|
|
|
27 |
|
28 |
# A Named Entity Recognition Model for Kazakh
|
29 |
- The model was inspired by the [LREC 2022](https://lrec2022.lrec-conf.org/en/) paper [*KazNERD: Kazakh Named Entity Recognition Dataset*](https://aclanthology.org/2022.lrec-1.44).
|
30 |
+
- The model was trained for 3 epochs on [*ner_kazakh*](https://huggingface.co/datasets/yeshpanovrustem/kaznerd_cleaned).
|
31 |
- The original repository for the paper can be found at *https://github.com/IS2AI/KazNERD*.
|
32 |
|
33 |
## How to use
|
|
|
37 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
38 |
from transformers import pipeline
|
39 |
|
40 |
+
tokenizer = AutoTokenizer.from_pretrained("yeshpanovrustem/xlm_roberta_large_ner_kazakh")
|
41 |
+
model = AutoModelForTokenClassification.from_pretrained("yeshpanovrustem/xlm_roberta_large_ner_kazakh")
|
42 |
|
43 |
nlp = pipeline("ner", model = model, tokenizer = tokenizer)
|
44 |
example = "Қазақстан Республикасы — Шығыс Еуропа мен Орталық Азияда орналасқан мемлекет."
|