wbi-sg commited on
Commit
ceb54b2
1 Parent(s): d8835c0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -4
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
- print(f"Span: {span.text}")
46
- for candidate_label in span.get_labels(linker.label_type):
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