Update README.md
Browse files
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 |
-
|
|
|
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.
|