# 🧠 Client Intent Classifier
A lightweight machine learning project that classifies customer support messages into predefined intent categories such as `return`, `complaint`, `invoice inquiry`, and more.
Built with Python, `scikit-learn`, and `TfidfVectorizer` — designed for quick local predictions and easy customization for specific business needs.
---
## 📂 Categories
The model recognizes the following intent categories:
- `zwrot` – return
- `reklamacja` – complaint
- `pytanie o zamówienie` – order inquiry
- `pytanie o fakturę` – invoice inquiry
- `niezwiązane z produktem` – unrelated
- `inne pytanie` – other question
---
## 🚀 How to use
### 1. Clone the repo
```bash
git clone https://github.com/yourusername/client-intent-classifier.git
cd client-intent-classifierpip install -r requirements.txtpython train.pyThis will create two files:
model/model.pkl– trained classifiermodel/vectorizer.pkl– text vectorizer
python predict.pyOr use classify(text) inside your code.
You can run a simple web interface using:
The training dataset is available in:
data/boc_intents_dataset.csv
It contains 200+ artificial Polish-language messages balanced across 6 categories.
You can replace this with real data and re-train the model easily.
Input:
Chciałbym otrzymać fakturę za zamówienie.
Output:
pytanie o fakturę
This project is licensed under the MIT License.
See the LICENSE file for details.
Feel free to use or adapt for educational and non-commercial use.
For commercial licensing – contact the author.
Created by Maryna Dudik Junior Data Scientist & Automation Enthusiast