Project for IR2 course.
To run the code, you firstly need to download pre-trained GloVe embeddings.
-
Run dataset.py to generate Glove embeddings from the training set, and to generate a word2index and word2embedding file. Additional arguments can be given to use a different pre-trained Glove embeddings file and to adjust the output accordingly.
python dataset.py -
Run main.py to run the Response-Generating Retrieve, Rerank, Rewrite model.
python main.py