Giter Site home page Giter Site logo

author-disambiguation's Introduction

Author-Disambiguation

This is a research project in which we address the problem of disambiguation in a co authorship network. Say, we are looking at all the papers by the same author. The same author may have slight variations in his first name or last name or both.

For example, the author David Albertini has the following variations in his name :

  • D.F. Albertini
  • David. F. Albertini
  • D. Albertini
  • AlbertniDF

Now, how do we say that 2 papers belong to the same author career? This is technically the problem of disambiguation. In literature some also call it as Record Linkage.

We took a machine learning approach to solve this problem. It turns out to be binary classification problem where 2 Author-Paper instances either match or don't match. (1 or 0).

Clone this Repo

Clone this repository into whatever directory you'd like to work on it from:

git clone https://github.com/diging/author-disambiguation.git

Install the following

Files

  • PaperParser.py This class uses Tethne to parse WOS tagged-file data and write the output to a CSV file. Then we can use the class DataAnalysisTool.py on the output csv to perform data analysis

    • There are 2 possible use-cases

      parser = PaperParser('/Users/aosingh/TethneDataAnalysis/MBL History Data/1971/Albertini_David.txt',
                           '/Users/aosingh/AuthorDisambiguation/Dataset',)
      parser.parseFile()
      parser = PaperParser('/Users/aosingh/TethneDataAnalysis/MBL History Data/',
                           '/Users/aosingh/AuthorDisambiguation/Dataset', 
                           output_filename='records.csv')
      parser.parseDirectory()
  • DataAnalysisTool.py This class has methods and tools to analyse a bunch of (World of Science)WOS papers objects. DataSet is read from a CSV. A CSV file of expected format can be easily created using the class PaperParser.py as explained above.

    • An example usage of this analysis tool can be to get all papers based on different variations of the first names and last names.

        fileName = '/Users/aosingh/AuthorDisambiguation/Dataset/Albertini_David.csv' #this CSV is generated using the class PaperParser.py
        analyzer = DataAnalysisTool(fileName) # Please check the class DataAnalysisTool.py for more details
        ALBERTINI_FIRSTNAME = ['DAVID', 'DF', 'DAVID F', 'D F', 'D']
        ALBERITNI_LASTNAME = ['ALBERTINI', 'ALBERTIN', 'ALBERTINDF']
        papers = analyzer.getPapersForAuthor(ALBERITNI_LASTNAME, ALBERTINI_FIRSTNAME)
  • DistanceMetric.py We can define various similarity metrics in this class.

    • As of now, I have defined a method to calculate cosine similarity.

      input1 = "CARNEGIE INST WASHINGTON,DEPT EMBRYOL"
      input2 = "CARNEGIE INST WASHINGTON,DEPT"
      vector1 = sentence_to_vector(input1) #Counter({'EMBRYOL': 1, 'WASHINGTON': 1, 'INST': 1, 'CARNEGIE': 1, 'DEPT': 1})
      vector2 = sentence_to_vector(input2) #Counter({'WASHINGTON': 1, 'INST': 1, 'CARNEGIE': 1, 'DEPT': 1})
      cosine_similarity(vector1, vector2)  #0.894427191
  • TrainingDataGenerator.py This class is responsible for generating Training records. By training records, we mean the following 2 things.

    • Generate records in the form of : AUTHOR_INSTANCE_1, AUTHOR_INSTANCE_2, MATCH(0,1). The corresponding output file is called train.csv

      To be precise, following are the column names in the file train.csv

                 ['FIRST_NAME1', 
                 'FIRST_NAME2', 
                 'LAST_NAME1', 
                 'LAST_NAME2',
                 'EMAILADDRESS1', 
                 'EMAILADDRESS2', 
                 'INSTITUTE1', 
                 'INSTITUTE2',
                 'AUTHOR_KW1', 
                 'AUTHOR_KW2', 
                 'COAUTHORS1', 
                 'COAUTHORS2', 
                 'MATCH']
    • Scores in between the 2 AUTHOR INSTANCES. Each column is a score in between 0 and 1. We will train our classifiers on these records. The corresponding output file is called scores.csv

      To be precise, following are the column names in the file scores.csv

                  ['INSTIT_SCORE',
                  'BOTH_NAME_SCORE',
                  'FNAME_SCORE',
                  'FNAME_PARTIAL_SCORE',
                  'LNAME_SCORE',
                  'LNAME_PARTIAL_SCORE',
                  'EMAIL_ADDR_SCORE',
                  'AUTH_KW_SCORE',
                  'COAUTHOR_SCORE',
                  'MATCH']
    • Example of usage of this class

       fileName = '/Users/aosingh/AuthorDisambiguation/Dataset/Albertini_David.csv' #this CSV is generated using the class PaperParser.py
       analyzer = DataAnalysisTool(fileName) # Please check the class DataAnalysisTool.py for more details
       ALBERTINI_FIRSTNAME = ['DAVID', 'DF', 'DAVID F', 'D F', 'D']
       ALBERITNI_LASTNAME = ['ALBERTINI', 'ALBERTIN', 'ALBERTINDF']
       papers = analyzer.getPapersForAuthor(ALBERITNI_LASTNAME, ALBERTINI_FIRSTNAME)
       training_data_generator = TrainingDataGenerator(papers, random=False)
       training_data_generator.generate_records() # generate train.csv.
       training_data_generator.calculate_scores() # Generate scores.csv

author-disambiguation's People

Contributors

aosingh avatar erickpeirson avatar

Watchers

James Cloos 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.