Update README.md
Browse files
README.md
CHANGED
@@ -3,4 +3,21 @@ library_name: spacy
|
|
3 |
metrics:
|
4 |
- accuracy
|
5 |
pipeline_tag: token-classification
|
6 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
metrics:
|
4 |
- accuracy
|
5 |
pipeline_tag: token-classification
|
6 |
+
---
|
7 |
+
|
8 |
+
# NER for Early New High German (Frühneuhochdeutsch)
|
9 |
+
Based on the SpaCy German model and trained on letters from the [Bullinger collection](http://www.bullinger-digital.ch/)
|
10 |
+
|
11 |
+
# How to use
|
12 |
+
|
13 |
+
```python
|
14 |
+
import spacy
|
15 |
+
nlp = spacy.load('./enhg_pipeline')
|
16 |
+
doc = nlp('Ich hab euch uff gestert ouch by ainem mennlin von Strasburg geschriben mitt ainem brieff gen Bern gehörig.')
|
17 |
+
for ent in doc.ents:
|
18 |
+
print(ent.text, ent.label_)
|
19 |
+
|
20 |
+
# Output:
|
21 |
+
# Strasburg GEO
|
22 |
+
# Bern GEO
|
23 |
+
```
|