File size: 1,215 Bytes
1cdf084
 
 
4f9f044
a96c4fd
297e190
55ab3f9
 
1cdf084
297e190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55ab3f9
 
 
 
 
 
 
 
 
 
075887a
55ab3f9
 
 
 
 
4f9f044
55ab3f9
 
f5179c6
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
---
language: de
widget:
- text: My name is Karl and I live in Aachen.
tags:
- translation
datasets:
- wmt19
license: gpl
model-index:
- name: Tanhim/translation-En2De
  results:
  - task:
      type: translation
      name: Translation
    dataset:
      name: wmt19
      type: wmt19
      config: de-en
      split: validation
    metrics:
    - name: BLEU
      type: bleu
      value: 43.3134
      verified: true
    - name: loss
      type: loss
      value: 0.919737696647644
      verified: true
    - name: gen_len
      type: gen_len
      value: 27.8909
      verified: true
---

<h2> English to German Translation </h2>


Model Name: Tanhim/translation-En2De <br />
language: German or Deutsch  <br />
thumbnail: https://huggingface.co/Tanhim/translation-En2De <br />

### How to use
You can use this model directly with a pipeline for machine translation. Since the generation relies on some randomness, I
set a seed for reproducibility:
```python
>>> from transformers import pipeline, set_seed
>>> text_En2De= pipeline('translation', model='Tanhim/translation-En2De', tokenizer='Tanhim/translation-En2De')
>>> set_seed(42)
>>> text_En2De("My name is Karl and I live in Aachen")

```
### beta version