Instructions to use SLPG/Biomedical_French_to_English with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SLPG/Biomedical_French_to_English with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="SLPG/Biomedical_French_to_English")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SLPG/Biomedical_French_to_English", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
| 1 |
---
|
| 2 |
pipeline_tag: translation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
### Biomedical French to English Neural Machine Translation
|
|
|
|
| 1 |
---
|
| 2 |
pipeline_tag: translation
|
| 3 |
+
widget:
|
| 4 |
+
- text: "I liked this movie"
|
| 5 |
+
output:
|
| 6 |
+
- label: POSITIVE
|
| 7 |
+
score: 0.8
|
| 8 |
+
- label: NEGATIVE
|
| 9 |
+
score: 0.2
|
| 10 |
---
|
| 11 |
|
| 12 |
### Biomedical French to English Neural Machine Translation
|