Git Product home page Git Product logo

Comments (1)

MicheleCotrufo avatar MicheleCotrufo commented on June 12, 2024

Thanks for your feedback!
Indeed, it is possible to have "false positives". This tool tries several methods to identify the DOI, first in conventional ways (i.e. looking into the pdf metadata, or looking for a valid DOI in the pdf title or text). If these methods do not succeed, it tries more complicated things, such as extracting portions of text from the pdf file, googling them, and then looking for DOIs in the results of the google search. Thus, if your pdf file contains some text which can be somehow associated with a published paper via a google result, that will likely happen. In general, there is not a standard way to understand if a pdf file is a scientific publication or anything else, so I recommend running pdf2doi only on pdf files that contain scientific publications.

If you make the output more verbose (with the optional command -v), you can have more info about what pdf2doi is doing for each pdf file, and figure out why that specific DOI was associated with that file. If you are running it again on the same files, first make sure to clear the pdf metadata, because during the previous call to pdf2doi the found DOIs were stored in the pdf metadata. In summary, run the commands

pdf2doi "path/to/folder"  -v -id ""
pdf2doi "path/to/folder"  -v 

The first command will replace any DOI previously stored by pdf2doi in the file metadata by "". See also https://github.com/MicheleCotrufo/pdf2doi#manually-associate-the-correct-identifier-to-a-file-from-command-line and the third-to-last paragraph here https://github.com/MicheleCotrufo/pdf2doi#description.

from pdf2doi.

Related Issues (20)

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.