entai2965 commited on
Commit
71d67eb
Β·
verified Β·
1 Parent(s): 6ac670f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -8
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')