Training and deployment of Arabic DI models using MARBERT and SVM
├── requirements.txt # Dependencies for training and deployment
|── data_fetching.py # Script for fetching the dataset labels from a REST API
├── create_datasets.py # Splits labeled_dataset.csv into train.csv and validation.csv
|── preprocessing.py # Text preprocessing for the models
├── classical_model.py # Linear SVM model trained using TFIDF features
├── fine_tune.py # Fine Tunes MARBERT model
├── deploy.py # Deploys the two models locally on seperate routes for inference
pip install -r requirements.txt
python data_fetching.py
# or download the labeled dataset directly from google drive
gdown --id 1ir0WJRJQPBVihJ4fkc-ztewV84nyxtgt
python create_datasets.py
python classical_model.py
python fine_tune.py
pip install --upgrade --no-cache-dir gdown
gdown --id 1-NGYSdCjFU4-tWHwakKWYXUYOKK9ux8r # MARBERT checkpoint
gdown --id 1-6JVk3-fR3Q0MGkYQstfMP8fqi090YBh # TFIDF trained features
gdown --id 1yBHxGfRpn8XZswQuU4_7hAyOyjarn47t # Trained SVM model
python deploy.py
httpie module for example , use predict for DL model and predict_classical for SVM modelhttp POST the_public_ngrok_url/predict text=":D شوف بقي اللي انت عايزه"
Training and deployment of Arabic DI models using MARBERT and SVM
├── requirements.txt # Dependencies for training and deployment
|── data_fetching.py # Script for fetching the dataset labels from a REST API
├── create_datasets.py # Splits labeled_dataset.csv into train.csv and validation.csv
|── preprocessing.py # Text preprocessing for the models
├── classical_model.py # Linear SVM model trained using TFIDF features
├── fine_tune.py # Fine Tunes MARBERT model
├── deploy.py # Deploys the two models locally on seperate routes for inference
pip install -r requirements.txt
python data_fetching.py
# or download the labeled dataset directly from google drive
gdown --id 1ir0WJRJQPBVihJ4fkc-ztewV84nyxtgt
python create_datasets.py
python classical_model.py
python fine_tune.py
pip install --upgrade --no-cache-dir gdown
gdown --id 1-NGYSdCjFU4-tWHwakKWYXUYOKK9ux8r # MARBERT checkpoint
gdown --id 1-6JVk3-fR3Q0MGkYQstfMP8fqi090YBh # TFIDF trained features
gdown --id 1yBHxGfRpn8XZswQuU4_7hAyOyjarn47t # Trained SVM model
python deploy.py
httpie module for example , use predict for DL model and predict_classical for SVM modelhttp POST the_public_ngrok_url/predict text=":D شوف بقي اللي انت عايزه"