Update README.md
Browse files
README.md
CHANGED
@@ -39,16 +39,17 @@ import ctranslate2
|
|
39 |
import sentencepiece
|
40 |
|
41 |
#set defaults
|
42 |
-
string1='γ―ιγγ«εγΈγ¨ζ©γΏεΊγγ'
|
43 |
-
string2='ζ²γγGPTγ¨θ©±γγγγ¨γγγγΎγγ?'
|
44 |
-
raw_list=[string1,string2]
|
45 |
-
|
46 |
model_path='sugoi-v4-ja-en-ctranslate2'
|
47 |
sentencepiece_model_path=model_path+'/spm'
|
48 |
|
49 |
device='cpu'
|
50 |
#device='cuda'
|
51 |
|
|
|
|
|
|
|
|
|
|
|
52 |
#load models
|
53 |
translator = ctranslate2.Translator(model_path, device=device)
|
54 |
tokenizer_for_source_language = sentencepiece.SentencePieceProcessor(sentencepiece_model_path+'/spm.ja.nopretok.model')
|
@@ -80,16 +81,17 @@ import ctranslate2
|
|
80 |
import sentencepiece
|
81 |
|
82 |
#set defaults
|
83 |
-
string1='γ―ιγγ«εγΈγ¨ζ©γΏεΊγγ'
|
84 |
-
string2='ζ²γγGPTγ¨θ©±γγγγ¨γγγγΎγγ?'
|
85 |
-
raw_list=[string1,string2]
|
86 |
-
|
87 |
model_path='sugoi-v4-ja-en-ctranslate2'
|
88 |
sentencepiece_model_path=model_path+'/spm'
|
89 |
|
90 |
device='cpu'
|
91 |
#device='cuda'
|
92 |
|
|
|
|
|
|
|
|
|
|
|
93 |
#load models
|
94 |
translator = ctranslate2.Translator(model_path, device=device)
|
95 |
tokenizer_for_source_language = sentencepiece.SentencePieceProcessor(sentencepiece_model_path+'/spm.ja.nopretok.model')
|
|
|
39 |
import sentencepiece
|
40 |
|
41 |
#set defaults
|
|
|
|
|
|
|
|
|
42 |
model_path='sugoi-v4-ja-en-ctranslate2'
|
43 |
sentencepiece_model_path=model_path+'/spm'
|
44 |
|
45 |
device='cpu'
|
46 |
#device='cuda'
|
47 |
|
48 |
+
#load data
|
49 |
+
string1='γ―ιγγ«εγΈγ¨ζ©γΏεΊγγ'
|
50 |
+
string2='ζ²γγGPTγ¨θ©±γγγγ¨γγγγΎγγ?'
|
51 |
+
raw_list=[string1,string2]
|
52 |
+
|
53 |
#load models
|
54 |
translator = ctranslate2.Translator(model_path, device=device)
|
55 |
tokenizer_for_source_language = sentencepiece.SentencePieceProcessor(sentencepiece_model_path+'/spm.ja.nopretok.model')
|
|
|
81 |
import sentencepiece
|
82 |
|
83 |
#set defaults
|
|
|
|
|
|
|
|
|
84 |
model_path='sugoi-v4-ja-en-ctranslate2'
|
85 |
sentencepiece_model_path=model_path+'/spm'
|
86 |
|
87 |
device='cpu'
|
88 |
#device='cuda'
|
89 |
|
90 |
+
#load data
|
91 |
+
string1='γ―ιγγ«εγΈγ¨ζ©γΏεΊγγ'
|
92 |
+
string2='ζ²γγGPTγ¨θ©±γγγγ¨γγγγΎγγ?'
|
93 |
+
raw_list=[string1,string2]
|
94 |
+
|
95 |
#load models
|
96 |
translator = ctranslate2.Translator(model_path, device=device)
|
97 |
tokenizer_for_source_language = sentencepiece.SentencePieceProcessor(sentencepiece_model_path+'/spm.ja.nopretok.model')
|