Skip to content

An advanced, human-like question generation system built from scratch. This project dynamically learns from your input notes and data, mimicking human intelligence to generate insightful questions, fully personalized to the text you provide. No templates, just pure learning and reasoning! 🌟

Notifications You must be signed in to change notification settings

dmunasingha/Questions-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Advanced Question Generation AI

Python spaCy License Contributions Welcome Status

An advanced, human-like question generation system built from scratch. This project dynamically learns from your input notes and data, mimicking human intelligence to generate insightful questions, fully personalized to the text you provide. No templates, just pure learning and reasoning! 🌟


πŸ’‘ Features

  • Human-like Question Generation: Understands the text you input, and formulates questions dynamically.
  • Advanced NLP: Uses state-of-the-art Natural Language Processing techniques for parsing and understanding text.
  • Fully Customizable Model: Train the system on your own data, making it adaptable to specific topics and contexts.
  • No Templates: No predefined rules for questions – it learns and thinks just like a human would!

πŸ› οΈ Technologies & Libraries

  • Python 3.12.x: Core programming language.
  • spaCy: NLP library for text processing, tokenization, and dependency parsing.
  • scikit-learn: For machine learning components.
  • Flask : For building a simple web-based interface.
  • NumPy: For data manipulation.

πŸ“¦ Installation

1. Clone the Repository

git clone https://github.com/dmunasingha/Questions-Generator.git
cd Questions-Generator

2. Set Up the Environment

Install the required libraries from the requirements.txt file.

pip install -r requirements.txt

3. Install spaCy Model

After installing spaCy, download the required language model:

python -m spacy download en_core_web_sm

4. Copy .env file

After installing the spaCy Model, copy the .env.example into .env:

For Windows

copy .env.example .env

For Unix-like systems (Linux or macOS)

cp .env.example .env

βš™οΈ Usage

  1. Command Line Interface (CLI):

    • Run the main script to input your notes and generate questions:

      python index.py
    • The system will prompt you to input your notes, and then it will generate a set of human-like questions based on your input.

  2. Web App (Flask):

    • Start the Flask server:

      python app.py
    • Navigate to http://localhost:5000 in your browser to access the web-based interface for inputting notes and viewing generated questions.


🌟 Example

Input:

Technology plays a transformative role in education by enhancing learning experiences and providing access to resources. Online platforms and educational apps allow for personalized learning.

Generated Questions:

1. What is the transformative role of technology in education?
2. How do online platforms enhance personalized learning?
3. Why is it important to have access to educational resources?

πŸ› οΈ Development

Requirements

  • Python 3.12+
  • pip (for package management)
  • spaCy NLP Model (en_core_web_sm)

File Structure

Planned File structure to be implemented in the future with a model

πŸ“¦ question-generation
 ┣ πŸ“‚ data
 ┃ ┣ πŸ“œ dataset.json
 ┣ πŸ“‚ controllers
 ┃ ┣ πŸ“œ home_controller.py
 ┃ ┣ πŸ“œ about_controller.py
 ┣ πŸ“‚ models
 ┃ ┣ πŸ“œ question_generator.py
 ┣ πŸ“‚ static
 ┃ ┣ πŸ“‚ js
 ┃ ┣ ┣ πŸ“œ formValidator.js
 ┃ ┣ ┣ πŸ“œ home.js
 ┃ ┣ πŸ“‚ css
 ┃ ┣ ┣ πŸ“œ style.css
 ┣ πŸ“‚ templates
 ┃ ┣ πŸ“œ about.html
 ┃ ┣ πŸ“œ base.html
 ┃ ┣ πŸ“œ index.html
 ┣ πŸ“œ app.py          # Flask app
 ┣ πŸ“œ index.py        # Main CLI entry point
 ┣ πŸ“œ requirements.txt
 ┣ πŸ“œ README.md
 ┣ πŸ“œ SECURITY.md

πŸ’» Contributing

Contributions are welcome! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/new-feature).
  3. Commit your changes (git commit -m 'Add some new feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. Open a pull request.

βš–οΈ License

This project is licensed under the MIT License – see the LICENSE file for details.


🎯 Future Goals

  • Implement deeper learning capabilities for improved question generation.
  • Allow for training on larger datasets for domain-specific question generation.
  • Add more sophisticated web UI with a question editor.

πŸ‘₯ Contributors


πŸ™Œ Acknowledgements

Special thanks to the developers of spaCy and scikit-learn for their amazing libraries.


Disclaimer: This project is for educational purposes and is constantly evolving. Feel free to explore, contribute, and adapt it to your

About

An advanced, human-like question generation system built from scratch. This project dynamically learns from your input notes and data, mimicking human intelligence to generate insightful questions, fully personalized to the text you provide. No templates, just pure learning and reasoning! 🌟

Topics

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published