Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import docx
- def getText(filename):
- doc = docx.Document(filename)
- fullText = []
- for para in doc.paragraphs:
- fullText.append(para.text)
- return '\n'.join(fullText)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement