Skip to content

Commit

Permalink
Add main script to map tags (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
woctezuma committed Jul 22, 2023
1 parent 7ab346a commit 8f0fed9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions map_tags.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from src.data_utils import POLL_DICTIONARY_FNAME, POLL_SUMMARY_FNAME
from src.json_utils import load_json
from src.matrix_utils import get_adjacency_matrix, get_tag_joint_game_matrix
from src.tag_utils import sort_tags


def main():
games = load_json(POLL_SUMMARY_FNAME)
tag_dictionary = load_json(POLL_DICTIONARY_FNAME)

tags, tag_names = sort_tags(tag_dictionary)

tag_joint_game_matrix = get_tag_joint_game_matrix(games, tags)
tags_adjacency_matrix = get_adjacency_matrix(tag_joint_game_matrix)


if __name__ == "__main__":
main()

0 comments on commit 8f0fed9

Please sign in to comment.