pinaltech/sift-categories
A model for automated email sorting
1 min readupdated
A new local model categorizes incoming messages into types like receipts, finance, newsletters, social media, and promotions. It complements Picacho's built-in email client rules to help organize mail across 38 languages, including Russian. The system operates using extracted text features and sender metadata, taking up only about 1.2 MB.
Key features
- Support for 38 languages for parsing emails, subjects, and newsletter headers.
- Integration with client filtering rules using confidence thresholds from 70% to 90%.
- Local fine-tuning on your device without altering the model's actual weights.
- Compact size of about 1.2 MB thanks to 8-bit weight quantization.
What you can do
- Integrate the model into the Picacho email client for automated sorting of incoming mail.
- Set up automatic distribution of emails into categories like Primary, Transactions, Finance, and others.
- Train the classifier locally on your computer using interactive message shifting.
Example
python3 train.py --quick # быстрый запуск с оценкой на новых данных
python3 train.py # обучение финальной модели categories-v1.binRead more
DetailsMetrics and details: test accuracy is 96.5% (personal email is recognized without errors), with support for 38 languages.
Hardware requirements: minimal resource usage, the model weighs about 1.2 MB.
Limitations: training data was generated synthetically, and real emails may vary in phrasing.










Comments