Skip to content

Vi-shub/MCQ-generator-using-NLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCQ Generator using NLP

Overview

This project aims to automate the process of generating Multiple-Choice Questions (MCQs) using Natural Language Processing (NLP) techniques. It utilizes a Flask server to provide a user-friendly interface for generating MCQs from given texts or articles. The generated MCQs are designed to test the reader's understanding of the text while providing multiple correct answers to increase question complexity.

Features

  • Abstractive Summarization: Utilizes NLP models for abstractive summarization of input texts.
  • Keyword Extraction: Extracts keywords and key concepts from the text to form correct answer choices in MCQs.
  • Question Generation: Generates contextually relevant questions based on extracted keywords and text summaries.
  • Distractor Generation: Creates distractors or wrong answer choices to add challenge and depth to MCQs.
  • Word Sense Disambiguation: Ensures precise understanding of words within the context of the text for accurate question generation.

Tech Stack

  • Flask: Web framework for developing the server-side application.
  • Hugging Face Transformers: NLP models for abstractive summarization, keyword extraction, and question generation.
  • WordNet: Lexical database used for generating distractors.
  • KeywordProcessor: Library for keyword extraction.
  • BERT-based Model: Used for word sense disambiguation.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/MCQ-generator-using-NLP.git
  1. Navigate to the project directory:
cd MCQ-generator-using-NLP
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the Flask server:
python app.py
  1. Access the application in your web browser at http://localhost:5000.

Usage

  1. Enter the text or article from which you want to generate MCQs.
  2. Submit the form to generate MCQs.
  3. Review the generated MCQs with multiple correct answers and distractors.

Contribution

Contributions are welcome! Please fork the repository and create a pull request with your enhancements or fixes.

License

This project is licensed under the MIT.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published