Git Product home page Git Product logo

pdf_metadata_extract's Introduction

pdf_metadata_extract

Introduction:
The objective of the project is to be able to identify and extract metadata objects, namely Title, Authors, Affiliations, and Abstract, from a pdf research paper, specifically medical research papers. This code is part of an independent study project for the Spring 2017 semester. Its members are:

  1. Akul Siddalingaswamy - https://github.com/akuls/
  2. Aditya Narasimha Shastry - https://github.com/adityanshastry/

This project was completed with mentorship from:

  1. Dr. Shankar Vembu - Chan Zuckerberg Initiative
  2. Prof. Andrew McCallum - University of Massachusetts, Amherst

This code acts as a baseline for the project's other models to be measured against. It reads the data represented in Truviz XML format, obtained from http://cermine.ceon.pl/grotoap2/.

Usage:

  1. Place all the desired .cxml files, from the GROTOAP directories, in a folder
  2. Provide that folder's path, along with the desired target file path to the python file feature_preprocessing:
    $ python feature_preprocessing.py cxml_directory_path target_libsvm_file_path
    This step creates temporary pickle files for processing. The path for these pickle files are present in the Constants.py file with the variable names features_data_pickle_file_name, and features_labels_pickle_file_name. These need to be modified by the user as desired.
  3. Once the features for the desired train, and test directories have been created in libsvm files, provide them to the logistic_regression file for training, testing, and metrics to be presented:
    $ python logistic_regression.py train_libsvm_feature_path test_libsvm_feature_path

Miscellaneous:

  1. The features extracted require simstring dictionaries to be created. The dictionaries required by the code are already present in the dicts folder. If the user needs to create more dictionaries from text files, a function "create_simstring_databases" has been provided in the utils folder.

pdf_metadata_extract's People

Contributors

adityanshastry avatar

Stargazers

Lynne Wang avatar Wanyu Zhao avatar Zoey Sun avatar

Watchers

James Cloos avatar  avatar Akul Siddalingaswamy 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.