from narration.vectorcode.code.functions import ScriptBreakdown print("Start") print("-"*50) def dialogue_gen(path, id): filename1 = path refined, total_scenes = ScriptBreakdown().getRefined(filename1) sluglines, without_slug = ScriptBreakdown().getSlugAndNonSlug(refined) total_scenes = len(sluglines) characters = ScriptBreakdown().getSpeakers(without_slug) scenes, parenthetical_count_dict, predecessor_scene_no_dict, successor_scene_no_dict, actionline, parenthetical_lis, speakers, dia_count, dialogues, slugline_dic = ScriptBreakdown().getScenes(refined, total_scenes, characters) print(dialogues) dialogue_gen("/home/user/mnf/project/MNF/conversion/subtitling/newHindi.docx")