ThomasFfefefef commited on
Commit
fd35df4
1 Parent(s): 7bf1aae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -25
README.md CHANGED
@@ -16,29 +16,27 @@ model-index:
16
  args: plain_text
17
  ---
18
 
19
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
20
- should probably proofread and complete it, then remove this comment. -->
 
 
21
 
22
  # t5-end2end-question-generation
23
 
24
- This model is a fine-tuned version of [t5-base](https://huggingface.co/t5-base) on the squad dataset.
 
25
  It achieves the following results on the evaluation set:
26
  - Loss: 1.5691
27
 
 
 
28
  ## Use the Model
29
  ```
30
  from transformers import T5ForConditionalGeneration, T5TokenizerFast
31
 
32
  hfmodel = T5ForConditionalGeneration.from_pretrained("ThomasSimonini/t5-end2end-question-generation")
33
 
34
- text= "The abolition of feudal privileges by the National Constituent Assembly on 4 August 1789 and the Declaration \
35
- of the Rights of Man and of the Citizen (La Déclaration des Droits de l'Homme et du Citoyen), drafted by Lafayette \
36
- with the help of Thomas Jefferson and adopted on 26 August, paved the way to a Constitutional Monarchy \
37
- (4 September 1791 – 21 September 1792). Despite these dramatic changes, life at the court continued, while the situation \
38
- in Paris was becoming critical because of bread shortages in September. On 5 October 1789, a crowd from Paris descended upon Versailles \
39
- and forced the royal family to move to the Tuileries Palace in Paris, where they lived under a form of house arrest under \
40
- the watch of Lafayette's Garde Nationale, while the Comte de Provence and his wife were allowed to reside in the \
41
- Petit Luxembourg, where they remained until they went into exile on 20 June 1791."
42
 
43
  def run_model(input_string, **generator_args):
44
  generator_args = {
@@ -65,20 +63,6 @@ run_model(text)
65
 
66
  ```
67
 
68
- ## Model description
69
-
70
- More information needed
71
-
72
- ## Intended uses & limitations
73
-
74
- More information needed
75
-
76
- ## Training and evaluation data
77
-
78
- More information needed
79
-
80
- ## Training procedure
81
-
82
  ### Training hyperparameters
83
 
84
  The following hyperparameters were used during training:
 
16
  args: plain_text
17
  ---
18
 
19
+
20
+
21
+
22
+
23
 
24
  # t5-end2end-question-generation
25
 
26
+ This model is a fine-tuned version of [t5-base](https://huggingface.co/t5-base) on the squad dataset to generate questions based on a context.
27
+
28
  It achieves the following results on the evaluation set:
29
  - Loss: 1.5691
30
 
31
+ If you want to learn how to fine-tune t5 model to do the same, you can follow this [tutorial](https://colab.research.google.com/drive/1z-Zl2hftMrFXabYfmz8o9YZpgYx6sGeW?usp=sharing)
32
+
33
  ## Use the Model
34
  ```
35
  from transformers import T5ForConditionalGeneration, T5TokenizerFast
36
 
37
  hfmodel = T5ForConditionalGeneration.from_pretrained("ThomasSimonini/t5-end2end-question-generation")
38
 
39
+ text= "The abolition of feudal privileges by the National Constituent Assembly on 4 August 1789 and the Declaration \\nof the Rights of Man and of the Citizen (La Déclaration des Droits de l'Homme et du Citoyen), drafted by Lafayette \\nwith the help of Thomas Jefferson and adopted on 26 August, paved the way to a Constitutional Monarchy \\n(4 September 1791 – 21 September 1792). Despite these dramatic changes, life at the court continued, while the situation \\nin Paris was becoming critical because of bread shortages in September. On 5 October 1789, a crowd from Paris descended upon Versailles \\nand forced the royal family to move to the Tuileries Palace in Paris, where they lived under a form of house arrest under \\nthe watch of Lafayette's Garde Nationale, while the Comte de Provence and his wife were allowed to reside in the \\nPetit Luxembourg, where they remained until they went into exile on 20 June 1791."
 
 
 
 
 
 
 
40
 
41
  def run_model(input_string, **generator_args):
42
  generator_args = {
 
63
 
64
  ```
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  ### Training hyperparameters
67
 
68
  The following hyperparameters were used during training: