diff --git a/word_count.py b/word_count.py index 8886c09..bd7c20b 100644 --- a/word_count.py +++ b/word_count.py @@ -165,17 +165,19 @@ if __name__ == '__main__': full_oracle = False ################################################################################ - # Use either line: + # Use either option: - # 1. If you have a .txt of your cube + # 1. If you have your cube in Cube Cobra and want to filter per tag + # csv_path = cube_json.request_cube_csv('TheElegantCube_fetched', 'elegant') + # cube_list = cube_json.load_cube_from_csv(csv_path) + + # 2. If you have your cube in Cube Cobra and want to consider only cards with a certain tag + csv_path = cube_json.request_cube_csv('TheElegantCube_fetched', 'elegant') + cube_list = cube_json.load_cube_from_csv(csv_path, tag_filter={'core'}) + + # 3. If you have a .txt of your cube # cube_list = cube_json.load_cube_from_txt('YourCubeHere.txt') - # 2. If you have a .csv of your cube - # cube_list = cube_json.load_cube_from_csv('YourCubeHere.csv') - - # 3. If you have a .csv of your cube and want to consider only cards with a certain tag - cube_list = cube_json.load_cube_from_csv('cube_csvs/TheElegantCube_2020-11-17_5.0.4.csv', {'core'}) - ################################################################################ # Calculate average of a cube cube_json_handle = cube_json.create_cube_json(cube_list)