julien-c HF staff commited on
Commit
56bdf6d
1 Parent(s): 3118555

Migrate model card from transformers-repo

Browse files

Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755
Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/valhalla/t5-base-e2e-qg/README.md

Files changed (1) hide show
  1. README.md +38 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - squad
4
+ tags:
5
+ - question-generation
6
+ widget:
7
+ - text: "Python is a programming language. It is developed by Guido Van Rossum and released in 1991. </s>"
8
+ license: mit
9
+ ---
10
+
11
+ ## T5 for question-generation
12
+ This is [t5-base](https://arxiv.org/abs/1910.10683) model trained for end-to-end question generation task. Simply input the text and the model will generate multile questions.
13
+
14
+ You can play with the model using the inference API, just put the text and see the results!
15
+
16
+ For more deatils see [this](https://github.com/patil-suraj/question_generation) repo.
17
+
18
+ ### Model in action 🚀
19
+
20
+ You'll need to clone the [repo](https://github.com/patil-suraj/question_generation).
21
+
22
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/patil-suraj/question_generation/blob/master/question_generation.ipynb)
23
+
24
+ ```python3
25
+ from pipelines import pipeline
26
+
27
+ text = "Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum \
28
+ and first released in 1991, Python's design philosophy emphasizes code \
29
+ readability with its notable use of significant whitespace."
30
+
31
+ nlp = pipeline("e2e-qg", model="valhalla/t5-base-e2e-qg")
32
+ nlp(text)
33
+ => [
34
+ 'Who created Python?',
35
+ 'When was Python first released?',
36
+ "What is Python's design philosophy?"
37
+ ]
38
+ ```