Giter VIP home page Giter VIP logo

affiliation_parser's Introduction

Affiliation Parser

Fast and simple parser for MEDLINE and Pubmed Open-Access affiliation string. We can parse multiple fields from the affiliation string including department, affiliation, location, country, email and zip code from affiliation text.

We also provide function to match affiliation string to GRID dataset.

Example

Here is an example to parse affiliation

from affiliation_parser import parse_affil
parse_affil("Department of Health Science, Kochi Women's University, Kochi 780-8515, Japan. [email protected]")

output is a dictionary

{'full_text': "Department of Health Science, Kochi Women's University, Kochi , Japan. ",
 'department': 'Department of Health Science',
 'institution': "Kochi Women's University",
 'location': 'Kochi , Japan',
 'country': 'japan',
 'zipcode': '780-8515',
 'email': '[email protected]'}

Here is an example to match affiliation to GRID dataset.

from affiliation_parser import match_affil
match_affil("Department of Health Science, Kochi Women's University, Kochi 780-8515, Japan. [email protected]")

Output is a dictionary consist of GRID ID

{'City': 'Kochi',
 'Country': 'Japan',
 'ID': 'grid.444150.0',
 'Name': "Kochi Women's University",
 'State': ''}

Dependencies

use pip install -r requirements.txt in order to install required packages

Installation

Clone the repository and install using setup.py or simple copy affiliation_parser folder to your workspace.

$ git clone https://github.com/titipata/affiliation_parser
$ python setup.py install

Example results from MEDLINE database

I put some snippet on how to produce quick summarization from MEDLINE data here.

Total number of publications per country

Number of publications over time from selected countries

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.