def create_reader(option_tones, option_tag): '''Creates a reader according to the options: tonal/nontonal and POS/Affixes''' user = getpass.getuser() path = "cookbook/bambara/" path1 = os.getcwd() files = ["Corpus/"+f for f in listdir(path1+"\\Corpus") if f[-4:] == "html"] bambara = BambaraTagging(path, files, option_tones, option_tag) bambara.copy_files() print("\nPlease wait, reader is being created...\n") bambara.create_reader() bambara.sets8_1_1(90) print(option_tones+" "+option_tag+" 80% Train-, 10% Dev-, 10% Testset created") return bambara