Lalita commited on
Commit
3c44060
1 Parent(s): 8bb703b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -6
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-zh_cn-th
22
- python train_model.py --input_fname ../data/v1/Train.csv \\\\\\\\
23
- \\\\\\\\\\\\\\\\t--output_dir ../models/marianmt-zh_cn-th \\\\\\\\
24
- \\\\\\\\\\\\\\\\t--source_lang zh --target_lang th \\\\\\\\
25
- \\\\\\\\\\\\\\\\t--metric_tokenize th_syllable --fp16
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("cstorm125/marianmt-zh_cn-th")
34
- model = AutoModelForSeq2SeqLM.from_pretrained("cstorm125/marianmt-zh_cn-th").cpu()
35
 
36
  src_text = [
37
  '我爱你',
 
19
 
20
  ```
21
  export WANDB_PROJECT=marianmt-zh_cn-th
22
+ python train_model.py --input_fname ../data/v1/Train.csv \\\\\\\\\\\\\\\\
23
+ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\t--output_dir ../models/marianmt-zh_cn-th \\\\\\\\\\\\\\\\
24
+ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\t--source_lang zh --target_lang th \\\\\\\\\\\\\\\\
25
+ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\t--metric_tokenize th_syllable --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
  '我爱你',