File size: 2,804 Bytes
2f55f9c
 
8fe4344
2f55f9c
 
 
b6496a0
2f55f9c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
language:
- fr
- en
license: apache-2.0
datasets:
- SLPG/Biomedical_EN_FA_Corpus
metrics:
- bleu
library_name: fairseq
pipeline_tag: translation
---

### Biomedical Domain French to English Machine Translation
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:  [DLNMT](https://huggingface.co/datasets/SLPG/Biomedical_EN_FA_Corpus)

For a more in-depth exploration of our work, please refer to our **[paper](https://aclanthology.org/2023.wmt-1.26.pdf)**:

## Benchmarks

| testset               | BLEU  |
|-----------------------|-------|
| Medline20  	| 21.11 	|

## How to use model?
* This model can be accessed via git clone:
  ```
  git clone https://huggingface.co/SLPG/Biomedical_MT_EN-FR
  ```
* You can use Fairseq library to access the model for translations:
  ```
  from fairseq.models.transformer import TransformerModel
  ```

### Load the model
```
model = TransformerModel.from_pretrained('path/to/model')

```

#### Set the model to evaluation mode
```
model.eval()
```

#### Perform inference
```
input_text = 'Saisir du texte'

output_text = model.translate(input_text)

print(output_text)
```

## Citation

**If you use our model, kindly cite our [paper](https://aclanthology.org/2023.wmt-1.26.pdf)**:
```
@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.",
}
```