Repetition_detection.py is the main code file of this project. It is used to run each game and then output the total scores gained by each competitor.

Command that used to run the code is like: python /root/ParlAI4/repetition_detection.py /root/logs_write/BB_CR.txt /root/lemma_dict/BB_CR.jsonl tfidf 1 1 1 1 1 1 0 1

Where  /root/logs_write/BB_CR.txt is the bot-bot chat log, /root/lemma_dict/BB_CR.jsonl is the file saved the lemma idf orders, tfidf refers to the function used for similarity calculation and the following numbers indicate all the metrics are considered in the game.