Git Product home page Git Product logo

text-extractor's Introduction

text-extractor

Extract text from multiple Word documents in a folder, parse identified sections into separate columns of an excel spreadsheet output.

Define where each section starts and ends with start and stop words being the first word of a paragraph or newline. Script will go through all .docx files and copy text starting from each start_word_x variable to its stop_word_x or conditional_word variables. The body of text between the start and stop words will comprise of each column in the excel output. Configure your start and stop words identifying the body of text for each column at the top of the script, as well as the columns of your output file.

Example:

if:

start_word = 'Startword'

stop_word = 'Stopword'

then in Word doc sample:

this text wont be copied

°Startword bla bla bla

This text will be copied including the bla'blas above^.

°Stopword: this text wont be copied



note:
to add more words tags add the coinciding if and while loop, as well as the column headers of the capturing DataFrame.


Required Modules:

os
pandasdocx
re
docx
xlsxwriter


#whosawme

text-extractor's People

Contributors

whosawme avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

kinetickansra

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.