Normal1919
commited on
Commit
•
52cfc78
1
Parent(s):
7f335b5
Update README.md
Browse files
README.md
CHANGED
@@ -13,7 +13,7 @@ widget:
|
|
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
|
@@ -30,10 +30,10 @@ widget:
|
|
30 |
## How to use
|
31 |
```python
|
32 |
>>> from transformers import AutoModelWithLMHead,AutoTokenizer,pipeline
|
33 |
-
>>> mode_name = 'Normal1919/
|
34 |
>>> model = AutoModelWithLMHead.from_pretrained(mode_name)
|
35 |
>>> tokenizer = AutoTokenizer.from_pretrained(mode_name)
|
36 |
-
>>> translation = pipeline("
|
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 |
```
|
|
|
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-en-zh-lil-fine-tune
|
17 |
|
18 |
* base model: MarianMTModel
|
19 |
* pretrained_ckpt: Helsinki-NLP/opus-mt-en-zh
|
|
|
30 |
## How to use
|
31 |
```python
|
32 |
>>> from transformers import AutoModelWithLMHead,AutoTokenizer,pipeline
|
33 |
+
>>> mode_name = 'Normal1919/Marian-NMT-en-zh-lil-fine-tune'
|
34 |
>>> model = AutoModelWithLMHead.from_pretrained(mode_name)
|
35 |
>>> tokenizer = AutoTokenizer.from_pretrained(mode_name)
|
36 |
+
>>> translation = pipeline("Marian-NMT-en-zh-lil-fine-tune", 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 |
```
|