How sifatahammed/web-app-for-text-summarization-and-ner works
This is a browser-based text-processing app: users enter text or provide a file, select summarization or NER, and view the result. Text and CSV files are read in the browser; PDFs are sent to the backend for extraction. The backend exposes the documented processing endpoints and uses the BART summarization and XLNet NER models. Backend and model wiring is described in the README but was not present in the sampled source, so those connections reflect the documented capabilities.
Main entry points: Main.ipynb API endpoints · script.js Browser interaction · index.html Task selection · text_summarization.ipynb BART summarization
Components 9
Web interface
- Text and file input
Frontend/script.js - Task selection
Frontend/index.html - Browser interaction
Frontend/script.js - Results display
Frontend/script.js
Backend API
- API endpoints
Backend/Main.ipynb - PDF text extraction
Backend/Main.ipynb
Language models
- BART summarization
Text Summarization Model/text_summarization.ipynb - XLNet entity recognition
NER Model/NER.ipynb
Other components
- User
Connections 10
- User → Text and file input: provides text
- User → Task selection: selects task
- Text and file input → Browser interaction: supplies text
- Browser interaction → PDF text extraction: uploads PDF
- PDF text extraction → Browser interaction: returns extracted text
- Browser interaction → API endpoints: posts text
- API endpoints → BART summarization: runs summarization
- API endpoints → XLNet entity recognition: runs NER
- API endpoints → Results display: returns result
- Results display → User: displays result