The Flashcard/Question Answering from Text API is an NLP-based system that automatically generates flashcards and accurate answers from given text. The API enables users to create meaningful study materials and retrieve essential information with ease.
15
stars
30
commits
Python
primary language
Jul 29, 2023
updated
The Flashcard Generator is a project that utilizes the BART model to automatically generate flashcards from a given text. It provides an API endpoint to generate flashcards based on user input. The project leverages natural language processing techniques and deep learning models to extract relevant information and generate high-quality flashcards.
The core functionality of the Flashcard/Question Answering system is implemented in main.py. The file utilizes pre-trained models to accomplish the following tasks:
text2text-generation pipeline powered by T5-based language models.The API is created using the Flask web framework and resides in the app.py file. It sets up an HTTP server that exposes a single endpoint:
/generate_flashcards: Accepts POST requests with a JSON payload containing the text and num_flashcards_limit parameters. The text parameter should contain the text from which flashcards need to be generated, and num_flashcards_limit specifies the maximum number of flashcards to create.Upon receiving the request, the API calls the generate_flashcards function from main.py, passing the input text and the limit for the number of flashcards. The resulting flashcards are then returned as a JSON response.
git clone https://github.com/your-username/Flashcard-Generator.git
pip install flask transformers sentence-transformers nltk
Run the API file:
python app.py
The Flashcard Generator provides a RESTful API endpoint to generate flashcards. Send a POST request to the following URL:
http://localhost:5000/generate_flashcards
Replace "Enter your text here." with the text you want to generate flashcards from and set "num_flashcards_limit" to the maximum number of flashcards you want to create in the request body: :
{
"num_flashcards_limit": 5,
"text": "Enter your text here."
}
The API will respond with a JSON object containing the generated flashcards:
{
"flashcards": [
{
"question": "Question 1",
"answer": "Answer 1"
},
{
"question": "Question 2",
"answer": "Answer 2"
},
"question": "...",
"answer": "..."
]
}
I am actively working on implementing parallel computing techniques to enhance the performance of the flashcard generation process. By leveraging parallelization, my aim is to improve efficiency and reduce the processing time, allowing for faster generation of flashcards from larger texts.
In addition to implementing parallel computing, I am planning to incorporate user feedback functionality into the project. This feature will allow users to receive real-time feedback on their performance and progress, enabling them to assess their learning and track their improvement over time.
This project is licensed under the MIT License.
30 commits
Python
100.0%
The Flashcard/Question Answering from Text API is an NLP-based system that automatically generates flashcards and accurate answers from given text. The API enables users to create meaningful study materials and retrieve essential information with ease.
15
stars
30
commits
Python
primary language
Jul 29, 2023
updated
The Flashcard Generator is a project that utilizes the BART model to automatically generate flashcards from a given text. It provides an API endpoint to generate flashcards based on user input. The project leverages natural language processing techniques and deep learning models to extract relevant information and generate high-quality flashcards.
The core functionality of the Flashcard/Question Answering system is implemented in main.py. The file utilizes pre-trained models to accomplish the following tasks:
text2text-generation pipeline powered by T5-based language models.The API is created using the Flask web framework and resides in the app.py file. It sets up an HTTP server that exposes a single endpoint:
/generate_flashcards: Accepts POST requests with a JSON payload containing the text and num_flashcards_limit parameters. The text parameter should contain the text from which flashcards need to be generated, and num_flashcards_limit specifies the maximum number of flashcards to create.Upon receiving the request, the API calls the generate_flashcards function from main.py, passing the input text and the limit for the number of flashcards. The resulting flashcards are then returned as a JSON response.
git clone https://github.com/your-username/Flashcard-Generator.git
pip install flask transformers sentence-transformers nltk
Run the API file:
python app.py
The Flashcard Generator provides a RESTful API endpoint to generate flashcards. Send a POST request to the following URL:
http://localhost:5000/generate_flashcards
Replace "Enter your text here." with the text you want to generate flashcards from and set "num_flashcards_limit" to the maximum number of flashcards you want to create in the request body: :
{
"num_flashcards_limit": 5,
"text": "Enter your text here."
}
The API will respond with a JSON object containing the generated flashcards:
{
"flashcards": [
{
"question": "Question 1",
"answer": "Answer 1"
},
{
"question": "Question 2",
"answer": "Answer 2"
},
"question": "...",
"answer": "..."
]
}
I am actively working on implementing parallel computing techniques to enhance the performance of the flashcard generation process. By leveraging parallelization, my aim is to improve efficiency and reduce the processing time, allowing for faster generation of flashcards from larger texts.
In addition to implementing parallel computing, I am planning to incorporate user feedback functionality into the project. This feature will allow users to receive real-time feedback on their performance and progress, enabling them to assess their learning and track their improvement over time.
This project is licensed under the MIT License.
30 commits
Python
100.0%