bioport2txt/extract_clean_utf_8_from_bioport.py
def extract_clean_utf_8_from_text_in_dir(indir, outdir):
    '''
        Function that loops through directory and extracts texts from every bioport file in the directory
    '''
    for f in os.listdir(indir):
        text = get_text(indir + f)
        myoutfile = open(outdir + f.replace('.xml','.txt'), 'wb ')
        myoutfile.write(text)

        Function that loops through directory and extracts texts from every bioport file in the directory
    
Function that loops through directory and extracts texts from every bioport file in the directory
Function that loops through directory and extracts texts from every bioport file in the directory
def extract_clean_utf_8_from_text_in_dir(indir, outdir):
    for f in os.listdir(indir):
        text = get_text(indir + f)
        myoutfile = open(outdir + f.replace('.xml','.txt'), 'wb ')
        myoutfile.write(text)
def extract_clean_utf_8_from_text_in_dir ( indir , outdir ) : for f in os . listdir ( indir ) : text = get_text ( indir + f ) myoutfile = open ( outdir + f . replace ( '.xml' , '.txt' ) , 'wb ' ) myoutfile . write ( text )
Function that loops through directory and extracts texts from every bioport file in the directory
Function that loops through directory and extracts texts from every bioport file in the directory
'''
        Function that loops through directory and extracts texts from every bioport file in the directory
    '''
indir
outdir