SLPG/Biomedical_EN_FR_Corpus
Updated • 30 • 4
How to use SLPG/Biomedical_MT_FR_EN with Fairseq:
from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
models, cfg, task = load_model_ensemble_and_task_from_hf_hub(
"SLPG/Biomedical_MT_FR_EN"
)French to English translation model is a Transformer model trained on in-domain web crawled corpus from Wikipedia. This model is produced during the experimentation related to building domain-adapted NMT models for specialized domains. The evaluation is done on Medline 19-20 standard development and test sets.
source group: French
target group: English
Model: Transformer
Test Set: Medline-20
Pre-processing: Moses Tokenizer
Dataset Details: (https://huggingface.co/datasets/SLPG/Biomedical_EN_FA_Corpus)
For a more in-depth exploration of our work, please refer to our paper:
| testset | BLEU |
|---|---|
| Medline20 | 21.11 |
git clone https://huggingface.co/SLPG/Biomedical_MT_EN-FR
from fairseq.models.transformer import TransformerModel
model = TransformerModel.from_pretrained('path/to/model')
model.eval()
input_text = 'Saisir du texte'
output_text = model.translate(input_text)
print(output_text)
If you use our model, kindly cite our paper:
@inproceedings{firdous-rauf-2023-biomedical,
title = "Biomedical Parallel Sentence Retrieval Using Large Language Models",
author = "Firdous, Sheema and
Rauf, Sadaf Abdul",
editor = "Koehn, Philipp and
Haddow, Barry and
Kocmi, Tom and
Monz, Christof",
booktitle = "Proceedings of the Eighth Conference on Machine Translation",
month = dec,
year = "2023",
address = "Singapore",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.wmt-1.26",
pages = "263--270",
abstract = "We have explored the effect of in domain knowledge during parallel sentence filtering from in domain corpora. Models built with sentences mined from in domain corpora without domain knowledge performed poorly, whereas model performance improved by more than 2.3 BLEU points on average with further domain centric filtering. We have used Large Language Models for selecting similar and domain aligned sentences. Our experiments show the importance of inclusion of domain knowledge in sentence selection methodologies even if the initial comparable corpora are in domain.",
}