Update README.md
Browse files
README.md
CHANGED
@@ -13,15 +13,15 @@ language:
|
|
13 |
- hu
|
14 |
---
|
15 |
|
16 |
-
xlm-roberta model trained on
|
17 |
|
18 |
|
19 |
```python
|
20 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
21 |
from transformers import pipeline
|
22 |
|
23 |
-
tokenizer = AutoTokenizer.from_pretrained("EvanD/xlm-roberta-base-
|
24 |
-
ner_model = AutoModelForTokenClassification.from_pretrained("EvanD/xlm-roberta-base-
|
25 |
|
26 |
nlp = pipeline("ner", model=ner_model, tokenizer=tokenizer, aggregation_strategy="simple")
|
27 |
example = "A nevem Amadeus Wolfgang és Berlinben élek"
|
|
|
13 |
- hu
|
14 |
---
|
15 |
|
16 |
+
xlm-roberta model trained on hungarian ner dataset
|
17 |
|
18 |
|
19 |
```python
|
20 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
21 |
from transformers import pipeline
|
22 |
|
23 |
+
tokenizer = AutoTokenizer.from_pretrained("EvanD/xlm-roberta-base-hungarian-ner-huner")
|
24 |
+
ner_model = AutoModelForTokenClassification.from_pretrained("EvanD/xlm-roberta-base-hungarian-ner-huner")
|
25 |
|
26 |
nlp = pipeline("ner", model=ner_model, tokenizer=tokenizer, aggregation_strategy="simple")
|
27 |
example = "A nevem Amadeus Wolfgang és Berlinben élek"
|