Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. for file in File_Name_List:
  2. for file_txt in File_Name_List_TXT:
  3. f = open(file_txt,'w')
  4. with open(join(dirname(__file__), file), 'r') as document: config = {'conversion_target': DocumentConversionV1.NORMALIZED_TEXT}
  5. f.write(str(document_conversion.convert_document(document=document, config=config, media_type='text/plain').content).lower())
  6. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement