Split analyze_keywords.py into multiple scripts
This commit is contained in:
parent
32f8c20b2e
commit
5cec2e8e24
5 changed files with 88 additions and 81 deletions
11
analyze_cube_keywords.py
Normal file
11
analyze_cube_keywords.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""Print a keyword report for a cards.json file
|
||||
"""
|
||||
|
||||
import cube_json
|
||||
import keyword_stats
|
||||
|
||||
if __name__ == '__main__':
|
||||
cube_list = cube_json.load_cube_from_csv('cube_csvs/TheElegantCube_2020-11-17_5.0.4.csv', {'core'})
|
||||
cube_json_filename = cube_json.create_cube_json(cube_list, 'cubes/TheElegantCube_2020-11-17_5.0.4.json')
|
||||
keyword_dict = keyword_stats.keyword_count(cube_json_filename)
|
||||
keyword_stats.keyword_report(keyword_dict)
|
||||
Loading…
Add table
Add a link
Reference in a new issue