Vladniag commited on
Commit
c9711a2
·
verified ·
1 Parent(s): a188f8d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -25,6 +25,7 @@ pip install ctranslate2 OpenNMT-py==2.* sentencepiece
25
  2. Download model in some dirrectory
26
 
27
  3. Use with the Python program
 
28
  import ctranslate2
29
  import sentencepiece as spm
30
  def requestor0(block, prompt="Summarize", ender="0o0"):
@@ -46,6 +47,6 @@ text="""The first-ever published research on Tinshemet Cave reveals that Neander
46
  text=text.replace("\n","")
47
  rtext=requestor0(text,"Summarize")
48
  print(rtext+"\n")
49
-
50
- The prompta on which the model was trained:
51
  "Translate to english"; "Translate to russian"; "Generate question", "Make a title" "What is the topic of this text?", "Summarize", "Summarize briefly", "Make a step-by-step plan for this text" and russian analogs for this commnads. However, some combinations that were not present in the training sample also work. For example, "Translate briefly" can give a translation about twice as compact as the original text.
 
25
  2. Download model in some dirrectory
26
 
27
  3. Use with the Python program
28
+ [code]
29
  import ctranslate2
30
  import sentencepiece as spm
31
  def requestor0(block, prompt="Summarize", ender="0o0"):
 
47
  text=text.replace("\n","")
48
  rtext=requestor0(text,"Summarize")
49
  print(rtext+"\n")
50
+ [/code]
51
+ The prompts on which the model was trained:
52
  "Translate to english"; "Translate to russian"; "Generate question", "Make a title" "What is the topic of this text?", "Summarize", "Summarize briefly", "Make a step-by-step plan for this text" and russian analogs for this commnads. However, some combinations that were not present in the training sample also work. For example, "Translate briefly" can give a translation about twice as compact as the original text.