Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A simple tool to update bib entries with their official information (e.g., DBLP or the ACL anthology).

License

NotificationsYou must be signed in to change notification settings

yuchenlin/rebiber

Repository files navigation

We often cite papers using their arXiv versions without noting that they are alreadyPUBLISHED in some conferences. These unofficial bib entries might violate rules about submissions or camera-ready versions for some conferences.We introduceRebiber, a simple tool in Python to fix them automatically. It is based on the official conference information from theDBLP orthe ACL anthology (for NLP conferences)! You can check the list of supported conferenceshere.Apart from handling outdated arXiv citations,Rebiber also normalizes citations in a unified way (DBLP-style), supporting abbreviation and value selection.

Demo on Huggingface Spacehttps://huggingface.co/spaces/yuchenlin/Rebiber (recommended)

Colab notebook:here

Changelog

  • 2024.7 Version 1.2.0. added automatic script to download bib files for recent conferences from dblp.

  • 2023.06.01 New demo ready to use on Huggingface's Space via Gradio. Also, a few conferences are added.

  • 2021.09.06 We fixed a few minor bugs and added features such as sorting and urls to arXiv (if the paper is not in any conferences; thanks to@nicola-decao). We also updated the ACL anthology bib/json to the latest version as well as other conferences.

  • 2021.05.30We build abeta version of ourweb app for Rebiber; add new conferences to our dataset; fix a few minor bugs. (It is not working anymore. Please use the new huggingface space demo.)

  • 2021.02.08We now support multiple useful features: 1) turning off some certain values, e.g., "-r url,pages,address" for removing the values from the output, 2) using abbr. to shorten the booktitle values, e.g.,Proceedings of the .* Annual Meeting of the Association for Computational Linguistics -->Proc. of ACL. More examples arehere.

  • 2021.01.30We build a colab notebook as a simple web demo.link

Installation

# pip install rebiber -U # for the stable versionpip install -e git+https://github.com/yuchenlin/rebiber.git#egg=rebiber -U# rebiber --update  # (optional) update the bib data and the abbr. info  (using wget)

OR

git clone https://github.com/yuchenlin/rebiber.gitcd rebiber/pip install -e.

If you would like to use the latest github version with more bug fixes, please use the second installation method.

Usage(v1.1.3 and v1.2.0)

Normalize your bibtex file with the official conference information:

rebiber -i /path/to/input.bib -o /path/to/output.bib

You can find a pair of example input and output files inrebiber/example_input.bib andrebiber/example_output.bib.

argumentusage
-ior--input_bib. The path to the input bib file that you want to update
-oor--output_bib. The path to the output bib file that you want to save. If you don't specify any-o then it will be the same as the-i.
-ror--remove. A comma-separated list of value names that you want to remove, such as "-r pages,editor,volume,month,url,biburl,address,publisher,bibsource,timestamp,doi". Empty bydefault.
-sor--shorten. A bool argument that is"False" bydefault, used for replacingbooktitle with abbreviation in-a. Used as-s True.
-dor--deduplicate. A bool argument that is"True" bydefault, used for removing the duplicate bib entries sharing the same key. Used as-d True.
-lor--bib_list. The path to the list of the bib json files to be loaded. Checkrebiber/bib_list.txt for the default file. Usually you don't need to set this argument.
-aor--abbr_tsv. The list of conference abbreviation data. Checkrebiber/abbr.tsv for the default file. Usually you don't need to set this argument.
-uor--update. Update the local bib-related data with the latest Github version.
-vor--version. Print the version of current Rebiber.
-stor--sort. A bool argument that is"False" bydefault. used for keeping the original order of the bib entries of the input file. By setting it to be"True", the bib entries are ordered alphabetically in the output file. Used as-st True.

Example Input and Output

An example input entry with the arXiv information (from Google Scholar or somewhere):

@article{lin2020birds,title={Birds have four legs?! NumerSense: Probing Numerical Commonsense Knowledge of Pre-trained Language Models},author={Lin, Bill Yuchen and Lee, Seyeon and Khanna, Rahul and Ren, Xiang},journal={arXiv preprint arXiv:2005.00683},year={2020}}

An example normalized output entry with the official information:

@inproceedings{lin2020birds,title ="{B}irds have four legs?! {N}umer{S}ense: {P}robing {N}umerical {C}ommonsense {K}nowledge of {P}re-{T}rained {L}anguage {M}odels",author ="Lin, Bill Yuchen  and      Lee, Seyeon  and      Khanna, Rahul  and      Ren, Xiang",booktitle ="Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)",month = nov,year ="2020",address ="Online",publisher ="Association for Computational Linguistics",url ="https://www.aclweb.org/anthology/2020.emnlp-main.557",doi ="10.18653/v1/2020.emnlp-main.557",pages ="6862--6868",}

Supported Conferences

Thebib_list.txt contains a list of converted json files of the official bib data. In this repo, we now support the fullACL anthology, i.e., all papers that are published at *CL conferences (ACL, EMNLP, NAACL, etc.) as well as workshops.Also, we support any conference proceedings that can be downloaded from DBLP, for example, ICLR2020.

Note that to DBLP only allows you to download in batches of 1000 using &h=1000&f=0, where f=0|1000|2000 specifies the starting index. So we have to manually download the bib files of each conference and concatenate them together.add_conf.sh takes care of that, too.

The following conferences are supported and their bib/json files are in ourdata folder. You can turn each item on/off inbib_list.txt.Please feel free to create PR for adding new conferences followingthis!

NameYears
ACL Anthology(until 2024-07)
AAAI2010 -- 2024
AISTATS2013 -- 2024
ALENEX2010 -- 2020
ASONAM2010 -- 2019
BigDataConf2013 -- 2019
BMVC2010 -- 2023
CHI2010 -- 2024
CIDR2009 -- 2020
CIKM2010 -- 2020
COLT2000 -- 2020
CVPR2000 -- 2023
ICASSP2015 -- 2023
ICCV2003 -- 2023
ICLR2013 -- 2023
ICML2000 -- 2023
IJCAI2011 -- 2023
INTERSPEECH2016 -- 2023
KDD2010 -- 2023
MLSys2019 -- 2020
MM2016 -- 2020
NeurIPS2000 -- 2023
RECSYS2010 -- 2020
SDM2010 -- 2020
SIGIR2010 -- 2023
SIGMOD2010 -- 2022 (2023 and after changed to journal)
SODA2010 -- 2020
STOC2010 -- 2020
UAI2010 -- 2023
WSDM2008 -- 2020
WWW (The Web Conf)2001 -- 2024

Thanks forAnton Tsitsulin's great work on collecting such a complete set bib files!

Adding a new conference

  • Step 1, obtain the bib files for the conferences

You may download the bib files of recent conferences from dblp by running the code:

python download_dblp.py

Notice that ECCV and ECML does not work for the automatic download.

Alternatively, you can manually add any conferences from DBLP by downloading their bib files to ourraw_data folder, and run a prepared scriptadd_conf.sh.Take ICLR2020 and ICLR2019 as an example:

  • Go toDBLP and Download the bib files, and put them here asraw_data/iclr2020.bib andraw_data/iclr2019.bib (name should be in the format as {conf_name}{year}.bib)

  • Step 2: Run script to add the conferences

bash add_conf.sh iclr 2019 2020

Particularly, to update *CL conference, we can

python bib2json.py -i raw_data/anthology.bib -o data/acl.json

Star History

Star History Chart

Contact

Please emailyuchen.lin@usc.edu or create Github issues here if you have any questions or suggestions.


[8]ページ先頭

©2009-2025 Movatter.jp