Skip to content

Python package to generate MCQ Questions and Answers.

License

Notifications You must be signed in to change notification settings

Vaibhavbrkn/Quizzes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quizzes: Generate question-answers

✨ Features

  • Generate MCQ from passage with options

🚀 Quickstart

First download the sense2vec weight. Unzip it and place it into a path.

pip install git+https://github.com/Vaibhavbrkn/Quizzes.git
pip install git+https://github.com/Vaibhavbrkn/pke.git
from quizzes import Question

Q  = Question("path of sense2vec weight")
output = Q.generate("your passage" , min_mcq_question=5, max_mcq_question=8, min_fill_ques = 2, max_fill_ques=4)
"""
Output:
  {
    "mcq":[
            {
              "question":".....",
              "answer":"...",
              "choice":[]
            }
            ...
          ],
    "fill":[
            {
              "question"".....",
                "answer":"..."
            }
            ...
          ]
  }

"""

Releases

No releases published

Packages

No packages published

Languages