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

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -25,7 +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
- [code]
29
  import ctranslate2
30
  import sentencepiece as spm
31
  def requestor0(block, prompt="Summarize", ender="0o0"):
@@ -47,6 +47,6 @@ text="""The first-ever published research on Tinshemet Cave reveals that Neander
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.
 
25
  2. Download model in some dirrectory
26
 
27
  3. Use with the Python program
28
+ ```
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
+ ```
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.