Downloads · 30 days
5
1% of all-time downloads
dhanunjaya/qa_generation
qa_generation is a machine learning model from dhanunjaya. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This is t5-small model trained for answer aware question generation task. The answer spans are highlighted within the text with special highlight tokens.
Downloads · 30 days
5
1% of all-time downloads
All-time downloads
424
Public
Repo size
727 MB
Likes
1
Public
Click a slice to open those files.
.bin242 MB · 50%
From the Hugging Face model README
This is t5-small model trained for answer aware question generation task. The answer spans are highlighted within the text with special highlight tokens.
You can play with the model using the inference API, just highlight the answer spans with <hl> tokens and end the text with </s>. For example
<hl> 42 <hl> is the answer to life, the universe and everything. </s>
For more deatils see this repo.
You'll need to clone the repo.
from pipelines import pipeline
nlp = pipeline("question-generation")
nlp("42 is the answer to life, universe and everything.")
=> [{'answer': '42', 'question': 'What is the answer to life, universe and everything?'}]