initial model commit
Browse files
README.md
CHANGED
@@ -66,21 +66,20 @@ print(sentence)
|
|
66 |
# print predicted NER spans
|
67 |
print('The following NER tags are found:')
|
68 |
# iterate over entities and print
|
69 |
-
for entity in sentence.get_spans('
|
70 |
print(entity)
|
71 |
|
72 |
```
|
73 |
|
74 |
This yields the following output:
|
75 |
```
|
76 |
-
Span [1]: "I" [β Labels:
|
77 |
-
Span [2]: "love" [β Labels:
|
78 |
-
Span [3]: "Berlin" [β Labels:
|
79 |
-
Span [4]: "." [β Labels:
|
80 |
-
|
81 |
```
|
82 |
|
83 |
-
So, the word "*I*" is labeled as a **pronoun** (
|
84 |
|
85 |
|
86 |
---
|
|
|
66 |
# print predicted NER spans
|
67 |
print('The following NER tags are found:')
|
68 |
# iterate over entities and print
|
69 |
+
for entity in sentence.get_spans('pos'):
|
70 |
print(entity)
|
71 |
|
72 |
```
|
73 |
|
74 |
This yields the following output:
|
75 |
```
|
76 |
+
Span [1]: "I" [β Labels: PRON (0.9996)]
|
77 |
+
Span [2]: "love" [β Labels: VERB (1.0)]
|
78 |
+
Span [3]: "Berlin" [β Labels: PROPN (0.9986)]
|
79 |
+
Span [4]: "." [β Labels: PUNCT (1.0)]
|
|
|
80 |
```
|
81 |
|
82 |
+
So, the word "*I*" is labeled as a **pronoun** (PRON), "*love*" is labeled as a **verb** (VERB) and "*Berlin*" is labeled as a **proper noun** (PROPN) in the sentence "*TheI love Berlin*".
|
83 |
|
84 |
|
85 |
---
|