Add multilingual to the language tag
#1
by
lbourdois
- opened
README.md
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
-
|
2 |
---
|
3 |
-
|
4 |
language:
|
5 |
- de
|
6 |
- en
|
7 |
-
|
|
|
8 |
tags:
|
9 |
- translation
|
10 |
- wmt19
|
11 |
- allenai
|
12 |
-
license: apache-2.0
|
13 |
datasets:
|
14 |
- wmt19
|
15 |
metrics:
|
@@ -40,7 +38,7 @@ mname = "allenai/wmt19-de-en-6-6-base"
|
|
40 |
tokenizer = FSMTTokenizer.from_pretrained(mname)
|
41 |
model = FSMTForConditionalGeneration.from_pretrained(mname)
|
42 |
|
43 |
-
input = "Maschinelles Lernen ist
|
44 |
input_ids = tokenizer.encode(input, return_tensors="pt")
|
45 |
outputs = model.generate(input_ids)
|
46 |
decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
|
|
|
|
1 |
---
|
|
|
2 |
language:
|
3 |
- de
|
4 |
- en
|
5 |
+
- multilingual
|
6 |
+
license: apache-2.0
|
7 |
tags:
|
8 |
- translation
|
9 |
- wmt19
|
10 |
- allenai
|
|
|
11 |
datasets:
|
12 |
- wmt19
|
13 |
metrics:
|
|
|
38 |
tokenizer = FSMTTokenizer.from_pretrained(mname)
|
39 |
model = FSMTForConditionalGeneration.from_pretrained(mname)
|
40 |
|
41 |
+
input = "Maschinelles Lernen ist gro�artig, nicht wahr?"
|
42 |
input_ids = tokenizer.encode(input, return_tensors="pt")
|
43 |
outputs = model.generate(input_ids)
|
44 |
decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
|