Pclanglais commited on
Commit
285695f
·
verified ·
1 Parent(s): 4a5f658

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -0
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - fr
5
+ - en
6
+ - de
7
+ - es
8
+ - it
9
+ ---
10
+
11
+ **Headlines-OCR-Correction** is a model for the the correction of OCR errors and the standardization of French news headlines.
12
+
13
+ ## Usage
14
+ Headlines-OCR-Correction use a custom instruction structure: "### Text ###\n[text]\n\n### Correction ###\n" and a custom eos #END#.
15
+
16
+ Typical usage with vllm:
17
+
18
+ ```python
19
+ sampling_params = SamplingParams(temperature=0.9, top_p=.95, max_tokens=4000, presence_penalty = 0, stop=["#END#"])
20
+ prompt = "### Text ###\n" + user_input + "\n\n### Correction ###\n"
21
+ outputs = llm.generate(prompts, sampling_params, use_tqdm = False)
22
+ ```