javi8979 commited on
Commit
a233a6a
·
verified ·
1 Parent(s): a4b2a9c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md CHANGED
@@ -310,9 +310,33 @@ Marked: """
310
 
311
  # [('La', 'O'), ('defensa', 'O'), ('del', 'O'), ('antiguo', 'O'), ('responsable', 'O'), ('de', 'O'), ('la', 'O'), ('RFEF', 'B-ORG'), ('confirma', 'O'), ('que', 'O'), ('interpondrá', 'O'), ('un', 'O'), ('recurso.', 'O')]
312
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
 
 
 
314
  </details>
315
 
 
316
  ## Data
317
 
318
  ### Pretraining Data
 
310
 
311
  # [('La', 'O'), ('defensa', 'O'), ('del', 'O'), ('antiguo', 'O'), ('responsable', 'O'), ('de', 'O'), ('la', 'O'), ('RFEF', 'B-ORG'), ('confirma', 'O'), ('que', 'O'), ('interpondrá', 'O'), ('un', 'O'), ('recurso.', 'O')]
312
  ```
313
+ </details>
314
+
315
+
316
+ ### Grammar checker
317
+
318
+ For fixing any mistakes in grammar, you can use the following prompt template:
319
+
320
+ ```
321
+ Please fix any mistakes in the following {source} sentence or keep it unedited if it's correct.
322
+ Sentence: {sentence}
323
+ Corrected:
324
+ ```
325
+
326
+ <details>
327
+ <summary>Show an example</summary>
328
+
329
+ ```python
330
+ source = 'Catalan'
331
+ sentence = 'Entonses, el meu jefe m’ha dit que he de treballar els fins de setmana.'
332
+
333
+ text = f"Please fix any mistakes in the following {source} sentence or keep it unedited if it's correct.\nSentence: {sentence} \nCorrected:"
334
 
335
+ # Llavors, el meu cap m'ha dit que he de treballar els caps de setmana.
336
+ ```
337
  </details>
338
 
339
+
340
  ## Data
341
 
342
  ### Pretraining Data