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