Instructions to use ncbi/MedCPT-Article-Encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ncbi/MedCPT-Article-Encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ncbi/MedCPT-Article-Encoder")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ncbi/MedCPT-Article-Encoder") model = AutoModel.from_pretrained("ncbi/MedCPT-Article-Encoder") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ license_link: LICENSE
|
|
| 18 |
|
| 19 |
For more details, please check out our [paper](https://arxiv.org/abs/2307.00589) (Bioinformatics, 2023). Please note that the released version is slightly different from the version reported in the paper.
|
| 20 |
|
| 21 |
-
# Using the MedCPT Article Encoder
|
| 22 |
|
| 23 |
```python
|
| 24 |
import torch
|
|
|
|
| 18 |
|
| 19 |
For more details, please check out our [paper](https://arxiv.org/abs/2307.00589) (Bioinformatics, 2023). Please note that the released version is slightly different from the version reported in the paper.
|
| 20 |
|
| 21 |
+
# Case 1. Using the MedCPT Article Encoder
|
| 22 |
|
| 23 |
```python
|
| 24 |
import torch
|