This repository contains the API and algorithms for the Nepali News project. The project aims to provide a platform for the different news machine learning algorithms that can be used in the Nepali news Portals. This also contains a minimal ui for describing the algorithms and a platform to use it, without major news portals having to implement the algorithms themselves.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
-
Clone the repository
git clone <repo-url>
-
Create a virtual environment and install the dependencies
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt -
Run the API
fastapi run app/main.py
-
Access the swagger documentation at
http://localhost:8000/docs.
app/: API to access the news algorithmsnews_algorithms/: ML algorithms for the newsnepali_sentiment_analysis/: Sentiment analysis for the Nepali languagenews_classifier/: News classifier for the Nepali languagenews_recommendation/: News recommendation for the Nepali languagetext_summarizer/: Text summarizer for the news articles
tests/: Unit tests for the algorithmsui/: Minimal UI for description and usage of the algorithms
-
Navigate to the root directory
-
Run pytest to run the tests
pytest tests/
-
To run a specific test file
pytest tests/test_<filename>.py
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
- Attribution Required: Credit the original author (Suyash Shrestha).
- NonCommercial: Use of this code for commercial purposes is prohibited.
- Modifications: Allowed for non-commercial purposes only.