Example #1
0
def create_reader_9_1(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.sets9_1(90)
    print(option_tones+" "+option_tag+" 90% Train-, 10% Testset created")
    return bambara