Coder Social home page Coder Social logo

autoanes's Introduction

AutoAnes Codebase

PMC Text Extractor

A script for fetching and extracting text content from articles available in the PubMed Central (PMC) repository. Users need to provide a CSV file containing a list of PMC IDs without column headers. The extracted text content for each article is saved in a separate text file named by its PMC ID.

Instructions

1. Preparing Your CSV File

  • Create a CSV file containing PMC IDs you wish to extract text from.
  • Ensure the CSV doesn’t have a header, and PMC IDs are populated in the first column.

2. Configuring the Script

  • Open the PMC Text Extractor script.
    1. Find the line:
    csv_filename = "your_file.csv"
  • Replace "your_file.csv" with the path and name of your CSV file containing the PMC IDs.
    1. Find the line:
    PATH_PREFIX = "/PATH/TO/OUTPUT/FOLDER"
  • Replace with the path of folder where you want to save text output for each paper.

3. Running the Script

  • Setup Python enviroment with pip install -r requirements.txt
  • Run the script in a Python environment. python pdf_text_extractor.py

Output

  • Each output .txt file will contain the extracted text content of the corresponding PMC article.
  • The file will be named using the PMC ID, TBD: store mapping of ID to name or other readable tag

autoanes's People

Watchers

 avatar

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.