Downloads · 30 days
25
0% of all-time downloads
jian-mo/E2E-QA-Mining
E2E-QA-Mining is a machine learning model from jian-mo. 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 model mines the question-answer pairs from a given context in an end2end fashion. It takes a context as an input and generates a list of questions and answers as an output. It is based on a pre-trained t5-small m…
Downloads · 30 days
25
0% of all-time downloads
All-time downloads
5.7K
Public
Repo size
485 MB
Likes
3
Public
Click a slice to open those files.
.bin242 MB · 100%
From the Hugging Face model README
This model mines the question-answer pairs from a given context in an end2end fashion. It takes a context as an input and generates a list of questions and answers as an output. It is based on a pre-trained t5-small model and uses a prompt enigneering technique to train.
The model takes the context (with prompt) as an input sequence and will generate question-answer pairs as an output sequence. The max sequence length is 512 tokens. Inputs should be organized into the following format:
context: context text here. generate questions and answers:
The input sequence can then be encoded and passed as the input_ids argument in the model's generate() method.
You can try out the demo in the E2E-QA-mining space app
The model is limited to generating questions in the same style as those found in SQuAD, The generated questions can potentially be leading or reflect biases that are present in the context. If the context is too short or completely absent, or if the context and answer do not match, the generated question is likely to be incoherent.
The model was fine-tuned on a dataset made up of several well-known QA datasets (SQuAD)
Please find our code and cite us in this repo https://github.com/jian-mo/E2E-QA-Mining