Comments (1)
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)
- Pdf reading from file object rather than from path HOT 9
- Clash with other pdf extractions libraries HOT 1
- AttributeError: 'function' object has no attribute 'config' HOT 5
- doi2bib function HOT 1
- TypeError: 'NoneType' object is not iterable HOT 6
- Proxy? HOT 1
- File not closed HOT 1
- Add file DOI check to URL paths HOT 4
- All arXiv articles now have DOIs HOT 2
- [Suggestion] Look into PDF text-annotations for valid DOIs HOT 14
- got the wrong DOI when query the pre-published version of pdf
- Option for disabling document text method HOT 1
- Installation failed due to pymupdf==1.21.0 HOT 1
- bibtex entries: {\"u} becomes ΓΒΌ HOT 1
- Running this on Mac Big Sur in VSC, v 0.5 returns this error. v 0.4 does not. HOT 2
- Program returns error on encrypted files, would prefer if it skipped them. HOT 4
- Export/Save to CSV? Import From CSV? HOT 2
- Possible optimization for main.py HOT 1
- Not importing for Python 3.10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdf2doi.