# QuestionInIntentsAndActs

## Initial Weights

Add the following weights files to the `weights` folder:
* https://drive.google.com/file/d/11oqAG_aEEg0pngl701ruJfBE7bMsnAz7/view?usp=sharing
* https://drive.google.com/file/d/1JI8-aFPOrmxmiGEta9B4FtaNaHLXkRAL/view?usp=sharing

## Model Checkpoints

Unzip the following folders to the `checkpoints/qbert_high_sim_weighted` folder:
* https://drive.google.com/file/d/1XYEcmG2068VbxLunCByKSw8xx0LSr0SH/view?usp=sharing
* https://drive.google.com/file/d/1JoYaaC4tbDX6GMociivh7whYNwyxUBqa/view?usp=sharing


## Training

Run `python train_qbert.py [type/intent]`


## Prediction

To get prediction for intents, run:

`python predict_qbert.py intent -e=3`

To get prediction for acts, run:

`python predict_qbert.py type -e=4`


## Requirements

numpy==1.19.2  
tensorflow_gpu==2.5.0  
tqdm==4.56.0  
pytorch_transformers==1.2.0  
pandas==1.2.3  
scikit_learn==0.24.2  
tensorflow==2.6.0  


## Сaveat

For historical reasons, we call question `act` as `type` in the code. We will apply the necessary refactoring for final submission.
