Skip to content

xerevity/CodeNamesAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeNamesAgent

Welcome to the repository of our Codenames agents! This repository is the official implementation of Codenames as a Game of Co-occurrence Counting.

Play with the agents

To be able to play with our agents, you first need to create or download distance matrices:

Resources for playing in English:

Small matrices containing relatedness to possible board words

Resources for playing in Hungarian:

Small matrices containing relatedness to possible board words

PMI file, inverse PMI matrix, distances in PMI-graph (Described in Hungarian here)

To play the game, run CodeNamesAgent/src/MainCMCL_from_matrix.java with the following parameters:

  1. path to the distance matrix, e.g. codenames_fasttext_sim_small.csv
  2. the clue scoring function (options: scoreKoyyalagunta, scoreKoyyalaguntaRestrict, scoreHarmonic, scoreHarmonicDivide)
  3. the number of targeted words as an integer (e.g. 2)

Generate our clues

To generate the clues we used for evaluation, run CodeNamesAgent/src/MainAgentClueTargets.java with the following parameters:

  1. data/english/boards_en.csv or data/hungarian/cmcl/boards_hu.csv
  2. data/english/board_colors.csv
  3. one of the distance matrices, e.g. codenames_fasttext_sim_small.csv

Evaluation

To evaluate our clues on the user data we collected, use eval/eval_codenames.py.

Example usage:

python eval/eval_codenames.py codenames_fasttext_sim_small.csv data/english/eval_data/fasttext_en.csv data/english/eval_data/dataclips_userdata_en.csv data/english/clues.csv data/english/boards_en.csv data/english/board_colors.csv

Citation

@inproceedings{cserhati-etal-2022-codenames,
title = "Codenames as a Game of Co-occurrence Counting",
author = "Cserh{\'a}ti, R{\'e}ka  and
Kollath, Istvan  and
Kicsi, Andr{\'a}s  and
Berend, G{\'a}bor",
booktitle = "Proceedings of the Workshop on Cognitive Modeling and Computational Linguistics",
month = may,
year = "2022",
address = "Dublin, Ireland",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.cmcl-1.5",
pages = "43--53",
}

About

repository of our CodeNames agents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages