A simple web application for biomedical Named Entity Recognition (NER) with user feedback capabilities.
- Input biomedical text and get entity predictions
- View highlighted entities with their labels
- Rate prediction quality (1-5 stars)
- Add optional remarks to ratings
- View average rating across all predictions
- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python main.pyThe application will be available at http://localhost:8000
GET /: Serves the web interfacePOST /predict: Submit text for NER analysisPOST /rate: Submit feedback for a predictionGET /average-rating: Get the average rating across all predictions
The application uses:
- FastAPI for the backend
- Tailwind CSS for styling
- HTMX for dynamic interactions
- JSON file storage for simplicity
- User authentication
- Database integration
- Advanced analytics
- Real NER model integration