Update README.md
Browse files
README.md
CHANGED
@@ -7,7 +7,7 @@ widget:
|
|
7 |
- text: "George Washington ging naar Washington"
|
8 |
inference:
|
9 |
parameters:
|
10 |
-
|
11 |
language:
|
12 |
- nl
|
13 |
---
|
@@ -17,6 +17,7 @@ Same model as [flair/ner-dutch-large](https://huggingface.co/flair/ner-dutch-lar
|
|
17 |
|
18 |
```python
|
19 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
|
|
20 |
|
21 |
tokenizer = AutoTokenizer.from_pretrained("EvanD/dutch-ner-xlm-conll2003")
|
22 |
ner_model = AutoModelForTokenClassification.from_pretrained("EvanD/dutch-ner-xlm-conll2003")
|
|
|
7 |
- text: "George Washington ging naar Washington"
|
8 |
inference:
|
9 |
parameters:
|
10 |
+
aggregation_strategy: "simple"
|
11 |
language:
|
12 |
- nl
|
13 |
---
|
|
|
17 |
|
18 |
```python
|
19 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
20 |
+
from transformers import pipeline
|
21 |
|
22 |
tokenizer = AutoTokenizer.from_pretrained("EvanD/dutch-ner-xlm-conll2003")
|
23 |
ner_model = AutoModelForTokenClassification.from_pretrained("EvanD/dutch-ner-xlm-conll2003")
|