From cbf4207d575f9f757b2d6beac2bf953afb6247c5 Mon Sep 17 00:00:00 2001 From: Kriti Subedi Date: Thu, 9 Apr 2026 14:51:30 -0230 Subject: [PATCH 1/2] chore: trigger ci proof From 684241a1e11dc69c2d3146d65e272581dce02540 Mon Sep 17 00:00:00 2001 From: Kriti Subedi Date: Sun, 12 Apr 2026 23:51:15 -0230 Subject: [PATCH 2/2] update readme file --- README.md | 97 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 54 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index d7c855d..87d1947 100644 --- a/README.md +++ b/README.md @@ -2,65 +2,64 @@ ## ๐Ÿ“Œ Project Overview +This project was developed by a three-person academic team over 10 weeks (part-time, $0 budget). + The **Review Guard System** is a locally runnable web application that uses **Natural Language Processing (NLP)** and **Machine Learning** to classify online reviews as: - โœ… Genuine - โŒ Fake -Users can: -- Analyze a single review -- View prediction with Fake probability confidence score -- Switch between different ML models +## ๐Ÿš€ Features +- Single review prediction +- Batch CSV upload and processing +- Fake/Genuine classification +- Fake probability score output +- Download results as CSV +- Multiple model support (v1, v2, v3) +- Fully offline system -This project was developed by a three-person academic team over 10 weeks (part-time, $0 budget). ---- -## ๐ŸŽฏ Project Goals +```markdown +## ๐Ÿ“‚ CSV Format + +The CSV file must contain the following columns: -- Achieve **>80% classification accuracy** -- Build a **fully offline web application** -- Follow **Agile development methodology** +text,rating,helpful_vote,verified_purchase ---- -## ๐Ÿ› ๏ธ Key Features +## ๐ŸŽฏ Project Goals -- Single review classification -- Confidence score output -- Model selection (v1, v2, v3) -- Simple web interface (Bootstrap-based UI) -- Fully offline execution +- Achieve **greater than 80% classification accuracy** on unseen test data +- Develop a **fully offline, locally runnable web application** +- Support both **single review prediction and batch CSV processing** +- Provide **fake probability scores for each prediction** +- Follow an **Agile development methodology with iterative improvements** +- Ensure **fast response time and user-friendly interface** ---- -## ๐Ÿง  Technology Stack +## ๐Ÿ› ๏ธ Technologies Used -- **Backend:** Python (Flask 2.x) +- **Backend:** Python (Flask) - **Frontend:** HTML, CSS, JavaScript - **ML/NLP:** Scikit-learn, NLTK -- **Data Processing:** Pandas -- **Model Serialization:** Joblib +- **Data Processing:** Pandas, NumPy +- **Model Storage:** Joblib - **Testing:** Pytest - ---- +- **CI/CD:** GitHub Actions + ## ๐Ÿ“‚ Dataset -### Label Direction +### Label Definition -- `label = 1 โ†’ fake` -- `label = 0 โ†’ genuine` +- `1` โ†’ Fake review +- `0` โ†’ Genuine review ---- +Note: The model uses binary classification where 1 represents fake and 0 represents genuine. -## ๐Ÿง  Models -- **v1 (Hybrid):** Text + metadata -- **v2 (Text-only):** Only text features -- **v3 (Best Model):** Blended model combining v1 + v2 ---- ## ๐Ÿ“‚ Project Structure @@ -109,14 +108,10 @@ Review-1/ - pip install -r requirements.txt -``` -## โ–ถ๏ธ Run Application -- python3 run.py mac -- python run.py +## โœ… RUN APPLICATION - -##Open in browser: -http://127.0.0.1:8000 +```bash +python3 run.py ๐Ÿ‹๏ธ Train Models @@ -129,9 +124,10 @@ http://127.0.0.1:8000 ## ๐Ÿ”น Train Model Versions -- v1 (Hybrid): Text + metadata -- v2 (Text-only): Only text features -- v3 (Best): Combined model +- **v1 (Hybrid):** Text + metadata +- **v2 (Text-only):** Only text features +- **v3 (Best Model):** Blended model combining v1 + v2 + ## v1 @@ -145,6 +141,16 @@ http://127.0.0.1:8000 ## v3 (Best) - python app/ml/training/train_model_v3.py +## ๐Ÿงช Testing + +- 106 test cases implemented +- 100% pass rate +- Includes: + - Unit Testing + - Integration Testing + - Security Testing + - Regression Testing + ## Optional (Advanced) @@ -170,6 +176,11 @@ http://127.0.0.1:8000 - Remaining Risk - Paraphrased reviews may still exist โ†’ residual risk +## โš™๏ธ CI/CD + +- GitHub Actions used +- Automated testing on every push + ## ๐Ÿ“Š Project Management (Jira)