Kinyarwanda
JoeyNMT
Machine-translation
rutsam commited on
Commit
f0a9c1a
1 Parent(s): feed085

Update readme bash code

Browse files
Files changed (1) hide show
  1. README.md +19 -8
README.md CHANGED
@@ -69,23 +69,32 @@ This model is a Kinyarwanda-to-English machine translation model, it was built a
69
 
70
  ## Translation
71
  To install joeyNMT run:
72
- >$ git clone https://github.com/joeynmt/joeynmt.git
 
73
  $ cd joeynmt
74
  $ pip install . -e
 
75
 
76
  Interactive translation(stdin):
77
- >$ python -m joeynmt translate configs/args.yaml
 
 
78
 
79
  File translation:
80
- >$ python -m joeynmt translate configs/args.yaml < src_lang.txt > hypothesis_trg_lang.txt
 
 
81
 
82
  ## Accuracy measurement
83
  Sacrebleu installation:
84
- > $ pip install sacrebleu
 
 
85
 
86
  Measurement(bleu_score, chrf):
87
- > $ sacrebleu reference.tsv -i hypothesis.tsv -m bleu chrf
88
-
 
89
 
90
  ## To-do
91
 
@@ -98,8 +107,10 @@ The following result was obtained using sacrebleu.
98
 
99
 
100
  Kinyarwanda-to-English:
101
- >Blue: 79.87
102
- >Chrf: 84.40
 
 
103
 
104
 
105
 
 
69
 
70
  ## Translation
71
  To install joeyNMT run:
72
+ ```
73
+ $ git clone https://github.com/joeynmt/joeynmt.git
74
  $ cd joeynmt
75
  $ pip install . -e
76
+ ```
77
 
78
  Interactive translation(stdin):
79
+ ```
80
+ $ python -m joeynmt translate configs/args.yaml
81
+ ```
82
 
83
  File translation:
84
+ ```
85
+ $ python -m joeynmt translate configs/args.yaml < src_lang.txt > hypothesis_trg_lang.txt
86
+ ```
87
 
88
  ## Accuracy measurement
89
  Sacrebleu installation:
90
+ ```
91
+ $ pip install sacrebleu
92
+ ```
93
 
94
  Measurement(bleu_score, chrf):
95
+ ```
96
+ $ sacrebleu reference.tsv -i hypothesis.tsv -m bleu chrf
97
+ ```
98
 
99
  ## To-do
100
 
 
107
 
108
 
109
  Kinyarwanda-to-English:
110
+ ```
111
+ Blue: 79.87
112
+ Chrf: 84.40
113
+ ```
114
 
115
 
116