The Keyword Extractor leverages Hugging Face’s facebook/bart-large-mnli model to extract relevant keywords or categories from user-provided text. Built with a ReactJS (Vite) frontend and a Flask backend, this tool provides real-time results in an interactive interface.
- AI-Powered Keyword Extraction: Utilizes state-of-the-art zero-shot classification for extracting key terms.
- Interactive Interface: Built with ReactJS for a smooth user experience.
- Real-Time Results: Processes and displays keywords instantly.
- Predefined Categories: Classifies text into predefined labels such as technology, healthcare, education, and more.
- ReactJS with Vite for responsive and fast UI.
- Axios for API communication.
- Flask for handling API requests and processing text.
- Hugging Face’s facebook/bart-large-mnli for zero-shot classification.
git clone [email protected]:allanninal/keyword-extractor.git
cd keyword-extractor
-
Create and activate a virtual environment:
python3.12 -m venv venv source venv/bin/activate # Linux/Mac venv\Scripts\activate # Windows
-
Install dependencies using
requirements.txt
from the backend folder:pip install -r backend/requirements.txt
-
Run the Flask backend:
python backend/app.py
-
Navigate to the
frontend
directory:cd frontend
-
Install dependencies:
npm install
-
Start the React development server:
npm run dev
Visit the app at http://localhost:5173
.
- Input Text: Enter the text into the input box on the frontend.
- Backend Processing: Flask processes the input text using Hugging Face’s
facebook/bart-large-mnli
. - Display Results: Extracted keywords are displayed in real time on the frontend.
- Custom Categories: Allow users to define their own keyword categories.
- Keyword Limits: Provide options to limit the number of extracted keywords.
- Multi-Language Support: Add support for non-English text using multilingual models.
- Export Results: Enable downloading of extracted keywords in CSV or JSON formats.
This project is licensed under the MIT License. See the LICENSE
file for details.
If you find this project helpful, consider supporting me on Ko-fi:
ko-fi.com/allanninal
For more exciting projects, check out my list of AI Mini Projects:
Mini AI Projects GitHub List