wbi-sg commited on
Commit
2929796
1 Parent(s): cff6301

Update README.md

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