Update README.md
Browse files
README.md
CHANGED
@@ -8,6 +8,9 @@ datasets:
|
|
8 |
model-index:
|
9 |
- name: en-zhtw
|
10 |
results: []
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
# en-zhtw
|
@@ -31,7 +34,12 @@ from transformers import pipeline
|
|
31 |
model_checkpoint = "agentlans/en-zhtw"
|
32 |
translator = pipeline("translation", model=model_checkpoint)
|
33 |
|
34 |
-
translator(
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
# [{'translation_text': '儘管在風沙住了一天,都會發現這裡是個非常多樣化的城市,但還是保留了一個小鎮的感覺。'}, {'translation_text': '從 1929 年的大使吊橋到今天的風雕公園,總長約 5 公里。'}]
|
37 |
```
|
@@ -60,4 +68,4 @@ The following hyperparameters were used during training:
|
|
60 |
- Transformers 4.43.3
|
61 |
- Pytorch 2.3.0+cu121
|
62 |
- Datasets 2.20.0
|
63 |
-
- Tokenizers 0.19.1
|
|
|
8 |
model-index:
|
9 |
- name: en-zhtw
|
10 |
results: []
|
11 |
+
language:
|
12 |
+
- en
|
13 |
+
- zh
|
14 |
---
|
15 |
|
16 |
# en-zhtw
|
|
|
34 |
model_checkpoint = "agentlans/en-zhtw"
|
35 |
translator = pipeline("translation", model=model_checkpoint)
|
36 |
|
37 |
+
translator(
|
38 |
+
[
|
39 |
+
"Even if you spend a day in Windsor you'll notice that it's a very multicultural city, yet still retaining a small town feel.",
|
40 |
+
"Its main waterfront park stretches about 5 km (3.1 mi), from the 1929 Ambassador suspension bridge past the contemporary Windsor Sculpture Park.",
|
41 |
+
]
|
42 |
+
)
|
43 |
|
44 |
# [{'translation_text': '儘管在風沙住了一天,都會發現這裡是個非常多樣化的城市,但還是保留了一個小鎮的感覺。'}, {'translation_text': '從 1929 年的大使吊橋到今天的風雕公園,總長約 5 公里。'}]
|
45 |
```
|
|
|
68 |
- Transformers 4.43.3
|
69 |
- Pytorch 2.3.0+cu121
|
70 |
- Datasets 2.20.0
|
71 |
+
- Tokenizers 0.19.1
|