pip install -r requirements.txt
train.ipynb
Note: This will train the model on data from chatgpt_gen_date.json
predict.py --conversation <str> --date <str> --label_type <str> --ensemble <bool>
Sample:
predict.py --conversation "Agent: Hi, I'm Taylor, calling from Westlake Financial on a recorded line. Unfortunately, we did not receive your monthly payment! Would you be able to make a payment today?\nCustomer: yeah i did i did it through text but that that bring the house for this one and then press two or whatever\n" --date "2020-01-01" --label_type "label" --ensemble
eval.py
Note: This will evaluate the model on data from test_data.json
format_data.py
- Trained model weights are stored on hugging face.
- Final model used - Finetuned FlanT5-large
- Extra model weights (for model 1, 2, 3 (described in Approach_explanation.pdf)) uploaded to huggingface just in case. Although a few other changes would need to be made to the code to run using these weights.
The details are in approach_explanation.pdf
Kaggle - GPU: P100 (16 GB)