Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- coreml
|
| 5 |
+
- transaction-classification
|
| 6 |
+
- belgian-finance
|
| 7 |
+
- ios
|
| 8 |
+
language:
|
| 9 |
+
- nl
|
| 10 |
+
- fr
|
| 11 |
+
- en
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# BelgoClassifier - Belgian Transaction Categorizer
|
| 15 |
+
|
| 16 |
+
CoreML model for categorizing Belgian bank transactions into 15 categories.
|
| 17 |
+
|
| 18 |
+
## Model Details
|
| 19 |
+
|
| 20 |
+
- **Version:** 1.0.0
|
| 21 |
+
- **Accuracy:** 83.8%
|
| 22 |
+
- **Framework:** CoreML (iOS/macOS)
|
| 23 |
+
- **Input:** 384-dimensional embedding vector
|
| 24 |
+
- **Output:** 15-class probability distribution
|
| 25 |
+
|
| 26 |
+
## Categories
|
| 27 |
+
|
| 28 |
+
1. groceries - Supermarkets, food stores
|
| 29 |
+
2. restaurants - Restaurants, fast food, delivery
|
| 30 |
+
3. transport - Public transport, fuel, parking
|
| 31 |
+
4. utilities - Electricity, gas, water
|
| 32 |
+
5. telecom - Phone, internet providers
|
| 33 |
+
6. healthcare - Medical, pharmacy, insurance
|
| 34 |
+
7. insurance - All insurance types
|
| 35 |
+
8. housing - Rent, mortgage
|
| 36 |
+
9. entertainment - Cinema, events, sports
|
| 37 |
+
10. shopping - Retail, online shopping
|
| 38 |
+
11. subscriptions - Streaming, software
|
| 39 |
+
12. income - Salary, refunds
|
| 40 |
+
13. transfers - Bank transfers
|
| 41 |
+
14. cash - ATM withdrawals
|
| 42 |
+
15. other - Uncategorized
|
| 43 |
+
|
| 44 |
+
## Usage in iOS
|
| 45 |
+
|
| 46 |
+
The model expects a 384-dimensional embedding vector (from sentence-transformers/all-MiniLM-L6-v2 or Apple's NLEmbedding).
|
| 47 |
+
|
| 48 |
+
```swift
|
| 49 |
+
// Load model
|
| 50 |
+
let model = try MLModel(contentsOf: modelURL)
|
| 51 |
+
|
| 52 |
+
// Create input
|
| 53 |
+
let embedding = getEmbedding(for: transactionText) // 384-dim vector
|
| 54 |
+
let input = try MLDictionaryFeatureProvider(dictionary: ["embeddings": embedding])
|
| 55 |
+
|
| 56 |
+
// Predict
|
| 57 |
+
let output = try model.prediction(from: input)
|
| 58 |
+
let probabilities = output.featureValue(for: "probabilities")
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## Training
|
| 62 |
+
|
| 63 |
+
Trained on synthetic Belgian transaction data including:
|
| 64 |
+
- Belgian supermarkets (Colruyt, Delhaize, Carrefour, etc.)
|
| 65 |
+
- Belgian banks and insurers
|
| 66 |
+
- Belgian telecom providers
|
| 67 |
+
- Common Belgian merchants
|
| 68 |
+
|
| 69 |
+
## License
|
| 70 |
+
|
| 71 |
+
MIT License - Free to use in commercial applications.
|
| 72 |
+
|
| 73 |
+
## Links
|
| 74 |
+
|
| 75 |
+
- App: BelgoBudgetto (iOS)
|
| 76 |
+
- Training code: Private repository
|