def _main_heartbeat_reduce(): logger.info("Retrieving events...") events = _get_window_events() events = simplify_string(events) logger.info("Beating hearts together...") merged_events = heartbeat_reduce(events, pulsetime=10) # Debugging assert_no_overlap(events) assert_no_overlap(merged_events) print_most_common_titles(events) print_most_common_titles(merged_events)
def _main_flood(): logger.info("Retrieving events...") events = _get_window_events() events = simplify_string(events) logger.info("Flooding...") merged_events = flood(events) # Debugging assert_no_overlap(events) assert_no_overlap(merged_events) print_most_common_titles(events) print_most_common_titles(merged_events)
def _main_merge(): logger.info("Retrieving events...") events = _get_window_events(n=1000) events = simplify_string(events) merged_events = merge_close_and_similar(events) print("{} events became {} after merging of similar ones".format( len(events), len(merged_events))) # Debugging assert_no_overlap(events) assert_no_overlap(merged_events) print_most_common_titles(events) print_most_common_titles(merged_events)