This project uses T5 for question generation, RoBERTa for difficulty classification, and RoBERTa-SQuAD for answer extraction to automatically generate and classify QA pairs from PDF documents. Ideal for educational and document analysis purposes.
Python
7
25 commits
updated Aug 20, 2024
Welcome to the QA Pair Generator project! This powerful tool uses cutting-edge natural language processing (NLP) models to generate insightful question-answer pairs from PDF documents. Whether you're working with academic papers, business reports, or any other document type, our application makes it easy to extract and understand key information.
Follow these steps to set up and run the QA Pair Generator locally:
install_dependencies.sh)To set up the QA Pair Generator on your local machine, follow these steps:
Start by cloning the repository to your local machine:
git clone https://github.com/MalaiarasuGRaj/QA-Pair-Generator/tree/main
cd qa_generator
Execute the 'install_dependencies.sh' script to install the necessary system packages:
./install_dependencies.sh
Install the required Python packages using 'requirements.txt':
pip install -r requirements.txt
Launch the Streamlit app with the following command:
streamlit run QAPair_Generator.py
Use the sidebar to upload your PDF files. Multiple files can be uploaded at once.
After uploading, the app will process the documents to extract text, generate questions, classify their difficulty, and find answers.
The generated QA pairs, along with their difficulty levels, will be displayed in the main content area.
Here are some examples of how the QA Pair Generator works:
Sample 1:
Sample 2:
Sample 3:
We welcome contributions to enhance the QA Pair Generator! To contribute:
This project uses T5 for question generation, RoBERTa for difficulty classification, and RoBERTa-SQuAD for answer extraction to automatically generate and classify QA pairs from PDF documents. Ideal for educational and document analysis purposes.
Python
7
25 commits
updated Aug 20, 2024
Welcome to the QA Pair Generator project! This powerful tool uses cutting-edge natural language processing (NLP) models to generate insightful question-answer pairs from PDF documents. Whether you're working with academic papers, business reports, or any other document type, our application makes it easy to extract and understand key information.
Follow these steps to set up and run the QA Pair Generator locally:
install_dependencies.sh)To set up the QA Pair Generator on your local machine, follow these steps:
Start by cloning the repository to your local machine:
git clone https://github.com/MalaiarasuGRaj/QA-Pair-Generator/tree/main
cd qa_generator
Execute the 'install_dependencies.sh' script to install the necessary system packages:
./install_dependencies.sh
Install the required Python packages using 'requirements.txt':
pip install -r requirements.txt
Launch the Streamlit app with the following command:
streamlit run QAPair_Generator.py
Use the sidebar to upload your PDF files. Multiple files can be uploaded at once.
After uploading, the app will process the documents to extract text, generate questions, classify their difficulty, and find answers.
The generated QA pairs, along with their difficulty levels, will be displayed in the main content area.
Here are some examples of how the QA Pair Generator works:
Sample 1:
Sample 2:
Sample 3:
We welcome contributions to enhance the QA Pair Generator! To contribute: