Update README.md
Browse files
README.md
CHANGED
@@ -42,10 +42,8 @@ linker.predict(sentence)
|
|
42 |
|
43 |
# print the results for each entity mention:
|
44 |
for span in sentence.get_spans(tagger.label_type):
|
45 |
-
|
46 |
-
|
47 |
-
candidate = dictionary[candidate_label.value]
|
48 |
-
print(f"Candidate: {candidate.concept_name}")
|
49 |
```
|
50 |
|
51 |
As an alternative to downloading the already precomputed model (much storage). You can also build the model
|
|
|
42 |
|
43 |
# print the results for each entity mention:
|
44 |
for span in sentence.get_spans(tagger.label_type):
|
45 |
+
for link in span.get_labels(linker.label_type):
|
46 |
+
print(f"{span.text} -> {link.value}")
|
|
|
|
|
47 |
```
|
48 |
|
49 |
As an alternative to downloading the already precomputed model (much storage). You can also build the model
|