alanakbik commited on
Commit
187411c
β€’
1 Parent(s): 56ba7a2

initial model commit

Browse files
Files changed (1) hide show
  1. README.md +6 -7
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('upos'):
70
  print(entity)
71
 
72
  ```
73
 
74
  This yields the following output:
75
  ```
76
- Span [1]: "I" [βˆ’ Labels: PRP (1.0)]
77
- Span [2]: "love" [βˆ’ Labels: VBP (1.0)]
78
- Span [3]: "Berlin" [βˆ’ Labels: NNP (0.9999)]
79
- Span [4]: "." [βˆ’ Labels: . (1.0)]
80
-
81
  ```
82
 
83
- So, the word "*I*" is labeled as a **pronoun** (PRP), "*love*" is labeled as a **verb** (VBP) and "*Berlin*" is labeled as a **proper noun** (NNP) in the sentence "*TheI love Berlin*".
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
  ---