Mollel commited on
Commit
f1a3ffa
·
verified ·
1 Parent(s): 551402d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -1
README.md CHANGED
@@ -52,4 +52,11 @@ The translation process for the ARC_Challenge_Swahili dataset involved two main
52
 
53
  ### Machine Translation:
54
  1. The initial translation from English to Swahili was performed using the SeamlessM4TModel translation model.
55
- The following parameters were used for the translation:
 
 
 
 
 
 
 
 
52
 
53
  ### Machine Translation:
54
  1. The initial translation from English to Swahili was performed using the SeamlessM4TModel translation model.
55
+
56
+ The following parameters were used for the translation:
57
+ ''' python
58
+
59
+ inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True, max_length=1024).to(device)
60
+ outputs = model.generate(**inputs, tgt_lang=dest_lang)
61
+ translation = tokenizer.batch_decode(outputs, skip_special_tokens=True)
62
+ '''