Integrate spaCy NLP for concise study notes with dynamic note cards and pdf export #270
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Integrate spaCy NLP for concise study notes with dynamic note cards and pdf export
Overview
This PR introduces a new feature to EduAid that lets users generate concise study notes from their input text, edit those notes on the fly, and download them as a PDF. The feature combines advanced NLP summarization on the backend with a polished, interactive React component on the frontend, positioning EduAid as a complete, user-friendly study platform.
What’s New
/summarize
Flask endpoint processes input text using spaCy to generate a set of concise note cards.Backend (Flask API)
Endpoint Setup
/summarize
(POST)input_text
Text Processing and Summarization
en_core_web_sm
model to:Note Card Generation
Frontend (React Component - StudyNotes.jsx)
Component Functionality
study_notes.pdf
.Bug Fixes Implemented
.replace(/[\n\r]+/g, " ")
) to prevent WinAnsi encoding errors.Demo Video
Watch the demo video to see the feature in action:
add_notes.mp4
Screenshot Table
Workflow
/summarize
endpoint, which returns structured note cards.Conclusion
This feature significantly enhances the EduAid platform by offering an intuitive way to condense long texts into manageable, editable study notes with a seamless download option. It is a high-value addition that enriches the student learning experience while maintaining a polished and robust design.