wbi-sg commited on
Commit
d68de16
1 Parent(s): c5f6af2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -49,7 +49,8 @@ As an alternative to downloading the already precomputed model (much storage). Y
49
  and compute the embeddings for the dataset using:
50
 
51
  ```python
52
- linker = EntityMentionLinker.build("dmis-lab/biosyn-sapbert-bc5cdr-disease", dictionary_name_or_path="ctd-diseases", hybrid_search=True)
 
53
  ```
54
 
55
  This will reduce the download requirements, at the cost of computation.
 
49
  and compute the embeddings for the dataset using:
50
 
51
  ```python
52
+ from flair.models.entity_mention_linking import BioSynEntityPreprocessor
53
+ linker = EntityMentionLinker.build("dmis-lab/biosyn-sapbert-bc5cdr-disease", dictionary_name_or_path="ctd-diseases", preprocessor=BioSynEntityPreprocessor(), hybrid_search=True)
54
  ```
55
 
56
  This will reduce the download requirements, at the cost of computation.