Update README.md
Browse files
README.md
CHANGED
@@ -52,7 +52,8 @@ As an alternative to downloading the already precomputed model (much storage). Y
|
|
52 |
and compute the embeddings for the dataset using:
|
53 |
|
54 |
```python
|
55 |
-
|
|
|
56 |
```
|
57 |
|
58 |
This will reduce the download requirements, at the cost of computation.
|
|
|
52 |
and compute the embeddings for the dataset using:
|
53 |
|
54 |
```python
|
55 |
+
from flair.models.entity_mention_linking import BioSynEntityPreprocessor
|
56 |
+
linker = EntityMentionLinker.build("dmis-lab/biosyn-biobert-ncbi-disease", dictionary_name_or_path="ctd-diseases", preproccessor=BioSynEntityPreprocessor(), hybrid_search=True)
|
57 |
```
|
58 |
|
59 |
This will reduce the download requirements, at the cost of computation.
|