yuchenlin / rebiber

A simple tool to update bib entries with their official information (e.g., DBLP or the ACL anthology).
https://yuchenlin.xyz/
MIT License
2.63k stars 158 forks source link

Adding arxiv URL when available #36

Closed nicola-decao closed 3 years ago

nicola-decao commented 3 years ago

When a bib_entry is not found now the scripts checks if it is an arxiv entry. If that is the case the new script adds the field url = {https://arxiv.org/abs/<ID>} to the bibitex entry.

yuchenlin commented 3 years ago

Thanks a lot!

yuchenlin commented 3 years ago

Hi @nicola-decao , I found that the current script seems not able to detect entries like these:

@article{Liu2019RoBERTaAR,
    title={RoBERTa: A Robustly Optimized BERT Pretraining Approach},
    author={Yinhan Liu and Myle Ott and Naman Goyal and Jingfei Du and Mandar Joshi and Danqi Chen and Omer Levy and Mike Lewis and Luke Zettlemoyer and Veselin Stoyanov},
    journal={ArXiv},
    year={2019},
    volume={abs/1907.11692},    
}

@article{Agarwal2020EntitySwitchedDA,
  title={Entity-Switched Datasets: An Approach to Auditing the In-Domain Robustness of Named Entity Recognition Models},
  author={Oshin Agarwal and Yinfei Yang and Byron C. Wallace and A. Nenkova},
  journal={ArXiv},
  year={2020},
  volume={abs/2004.04123}
}

Would it be possible to add some quick fixes on top of the current logic? Thanks much!

nicola-decao commented 3 years ago

@yuchenlin good catch! I'll add that case today and do another PR