How karlemami/deft works
Main Components
A. Data Processing Layer
• Data Acquisition Component (data/download_data.sh)
• Data Preprocessing Pipeline (src/preprocessing/)
• Descriptive Statistics Generator (src/descriptive_stats/)
B. Feature Engineering Layer
• Vectorization Components:
• TF-IDF Vectorizer
• Doc2Vec Vectorizer
• BERT Embeddings
C. Model Layer
• Classification Components:
• Random Forest Classifier
• Support Vector Machine
• Logistic Regression
• Perceptron
• Training Pipeline (src/classification/Trainer.py)
• Model Evaluation System
D. Results Management Layer
• Performance Metrics Storage
• Best Parameters Storage
• Results Output Generation
[Data Input] → [Preprocessing] → [Vectorization] → [Model Training/Testing] → [Results Output]
Specific Implementation Details
Top Level:
Configuration (config.yaml) ─────┐
• ↓
Raw Data → Preprocessing → Vectorization → Classification → Results
• ↓ ↑
• Statistics Generation ──────────────────────────────┘
Detail Level:
• ┌─── TF-IDF ───┐
Raw Data → Preprocessing → Doc2Vec → [Model Pool] → Evaluation → Results
• BERT ────┘ - RFC
• SVM
• LR
• Perceptron
Important Elements to Highlight
• Multi-language support (fr, en, it)
• Configurable pipeline components
• Multiple vectorization options
• Various classification algorithms
• Results storage structure
• Parameter optimization workflow