Update README.md
Browse files
README.md
CHANGED
@@ -19,10 +19,10 @@ Training scripts from [LalitaDeelert/NLP-ZH_TH-Project](https://github.com/Lalit
|
|
19 |
|
20 |
```
|
21 |
export WANDB_PROJECT=marianmt-th-zh_cn
|
22 |
-
python train_model.py --input_fname ../data/v1/Train.csv
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
```
|
27 |
|
28 |
## Usage
|
@@ -30,8 +30,8 @@ python train_model.py --input_fname ../data/v1/Train.csv \\\\
|
|
30 |
```
|
31 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
32 |
|
33 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
34 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("
|
35 |
|
36 |
src_text = [
|
37 |
'ฉันรักคุณ',
|
|
|
19 |
|
20 |
```
|
21 |
export WANDB_PROJECT=marianmt-th-zh_cn
|
22 |
+
python train_model.py --input_fname ../data/v1/Train.csv \\\\\\\\
|
23 |
+
\\\\t--output_dir ../models/marianmt-th-zh_cn \\\\\\\\
|
24 |
+
\\\\t--source_lang th --target_lang zh \\\\\\\\
|
25 |
+
\\\\t--metric_tokenize zh --fp16
|
26 |
```
|
27 |
|
28 |
## Usage
|
|
|
30 |
```
|
31 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
32 |
|
33 |
+
tokenizer = AutoTokenizer.from_pretrained("Lalita/marianmt-zh_cn-th")
|
34 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("Lalita/marianmt-zh_cn-th").cpu()
|
35 |
|
36 |
src_text = [
|
37 |
'ฉันรักคุณ',
|