Its input are stem and answer, and output is candidate set of distractors. It is fine-tuned by
DGen dataset based on
allenai/scibert_scivocab_uncased model.
For more details, you can see our
paper or
GitHub.
1from transformers import BertTokenizer, BertForMaskedLM, pipeline
2
3tokenizer = BertTokenizer.from_pretrained("AndyChiang/cdgp-csg-scibert-dgen")
4csg_model = BertForMaskedLM.from_pretrained("AndyChiang/cdgp-csg-scibert-dgen")
1sent = "The only known planet with large amounts of water is [MASK]. [SEP] earth"
2cs = unmasker(sent)
3print(cs)
This model is fine-tuned by
DGen dataset, which covers multiple domains including science, vocabulary, common sense and trivia. It is compiled from a wide variety of datasets including SciQ, MCQL, AI2 Science Questions, etc. The detail of DGen dataset is shown below.
The evaluations of this model as a Candidate Set Generator in CDGP is as follows: