Normal1919
commited on
Commit
•
7f335b5
1
Parent(s):
05e5a00
Update README.md
Browse files
README.md
CHANGED
@@ -6,10 +6,17 @@ language:
|
|
6 |
library_name: transformers
|
7 |
tags:
|
8 |
- translation
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
-
# Normal1919/
|
|
|
|
|
|
|
13 |
|
14 |
## Model description
|
15 |
|
@@ -18,6 +25,8 @@ widget:
|
|
18 |
* model: transformer
|
19 |
* source language(s): eng
|
20 |
* target language(s): cjy_Hans cjy_Hant cmn cmn_Hans cmn_Hant gan lzh lzh_Hans nan wuu yue yue_Hans yue_Hant
|
|
|
|
|
21 |
## How to use
|
22 |
```python
|
23 |
>>> from transformers import AutoModelWithLMHead,AutoTokenizer,pipeline
|
@@ -25,9 +34,10 @@ widget:
|
|
25 |
>>> model = AutoModelWithLMHead.from_pretrained(mode_name)
|
26 |
>>> tokenizer = AutoTokenizer.from_pretrained(mode_name)
|
27 |
>>> translation = pipeline("translation_en_to_zh", model=model, tokenizer=tokenizer)
|
28 |
-
>>> translation('I {i}should{/i} say that I feel a little relieved to find out that {i}this{/i} is why you’ve been hanging out with Kaori lately, though. She’s really pretty and I got jealous and...I’m sorry', max_length=400)
|
29 |
[{'我{i}应该{/i}说发现{i}这{/i}是你最近和Kaori出去的原因,我有点松了一口气。她很漂亮,我嫉妒,而且......我很抱歉。'}]
|
30 |
```
|
31 |
## Contact
|
32 |
|
33 |
-
517205163@qq.com
|
|
|
|
6 |
library_name: transformers
|
7 |
tags:
|
8 |
- translation
|
9 |
+
- fine_tune
|
10 |
+
widget:
|
11 |
+
- text: >-
|
12 |
+
I {i}should{/i} say that I feel a little relieved to find out that
|
13 |
+
{i}this{/i} is why you’ve been hanging out with Kaori lately, though. She’s
|
14 |
+
really pretty and I got jealous and...I’m sorry.
|
15 |
---
|
16 |
+
# Normal1919/Marian-NMT-lil-fine-tune
|
17 |
+
|
18 |
+
* base model: MarianMTModel
|
19 |
+
* pretrained_ckpt: Helsinki-NLP/opus-mt-en-zh
|
20 |
|
21 |
## Model description
|
22 |
|
|
|
25 |
* model: transformer
|
26 |
* source language(s): eng
|
27 |
* target language(s): cjy_Hans cjy_Hant cmn cmn_Hans cmn_Hant gan lzh lzh_Hans nan wuu yue yue_Hans yue_Hant
|
28 |
+
* fine_tune: On the basis of OPUS dataset checkpoints, train English original text with renpy text features (including but not limited to {i} [text] {/i}) to Chinese with the same reserved flag, as well as training for English name retention for LIL
|
29 |
+
*
|
30 |
## How to use
|
31 |
```python
|
32 |
>>> from transformers import AutoModelWithLMHead,AutoTokenizer,pipeline
|
|
|
34 |
>>> model = AutoModelWithLMHead.from_pretrained(mode_name)
|
35 |
>>> tokenizer = AutoTokenizer.from_pretrained(mode_name)
|
36 |
>>> translation = pipeline("translation_en_to_zh", model=model, tokenizer=tokenizer)
|
37 |
+
>>> translation('I {i} should {/i} say that I feel a little relieved to find out that {i}this {/i} is why you’ve been hanging out with Kaori lately, though. She’s really pretty and I got jealous and...I’m sorry', max_length=400)
|
38 |
[{'我{i}应该{/i}说发现{i}这{/i}是你最近和Kaori出去的原因,我有点松了一口气。她很漂亮,我嫉妒,而且......我很抱歉。'}]
|
39 |
```
|
40 |
## Contact
|
41 |
|
42 |
+
517205163@qq.com or
|
43 |
+
a4564563@gmail.com
|