wbi-sg commited on
Commit
dce88e8
1 Parent(s): ce6054d

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-bc2gn", dictionary_name_or_path="ncbi-gene", hybrid_search=False)
 
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-bc2gn", dictionary_name_or_path="ncbi-gene", preprocessor=BioSynEntityPreprocessor(), hybrid_search=False)
54
  ```
55
 
56
  This will reduce the download requirements, at the cost of computation.