mlnlp-world / simbiber Goto Github PK
View Code? Open in Web Editor NEWMLNLP社区用来帮助缩短参考文献的工具。A tool for simplifying bibtex with official info
License: MIT License
MLNLP社区用来帮助缩短参考文献的工具。A tool for simplifying bibtex with official info
License: MIT License
$ simbiber -i rebibered.bib -o simbibered.bib -keep "doi"
usage: simbiber [-h] [-i INPUT_PATH] [-o OUTPUT_PATH] [-c CONFIG_PATH] [-a IF_APPEND_OUTPUT]
[-cch CACHE_NUM] [-r REMOVE_DUPLICATE]
simbiber: error: unrecognized arguments: -keep doi
我好像看懂了,使用这个工具把bib文件转换一下是吧。。谢谢~打扰啦
没有细看代码;似乎是因为ACL的全称是EACL等的字串,优先匹配了。
把ACL行移到最下面会暂时缓解这个问题,
例:
@inproceedings{DBLP:conf/eacl/BunescuP06,
author = {Razvan C. Bunescu and
Marius Pasca},
editor = {Diana McCarthy and
Shuly Wintner},
title = {Using Encyclopedic Knowledge for Named entity Disambiguation},
booktitle = {{EACL} 2006, 11st Conference of the European Chapter of the Association
for Computational Linguistics, Proceedings of the Conference, April
3-7, 2006, Trento, Italy},
publisher = {The Association for Computer Linguistics},
year = {2006},
url = {https://aclanthology.org/E06-1002/},
timestamp = {Fri, 06 Aug 2021 00:40:45 +0200},
biburl = {https://dblp.org/rec/conf/eacl/BunescuP06.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
FileNotFoundError: [Errno 2] No such file or directory: 'keep_keys.cfg'
需要在utils\SimBiber.py下第75行前加上self.bib = Bib(self.args),否则会报错
The program encounters bugs when attempting to simplify bibliographies. I have also tried it on a Linux server and encountered the same error.
> simbiber -i refs.bib -o out.bib
100%|█████████████████████████████████████████████████████████████████████████████| 248/248 [00:00<00:00, 62167.55it/s]
Traceback (most recent call last):
File "\\?\G:\anaconda\Scripts\simbiber-script.py", line 33, in <module>
sys.exit(load_entry_point('simbiber', 'console_scripts', 'simbiber')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\xxx\desktop\paper\graphllm\simbiber\Simbiber\main.py", line 36, in main
sim_biber.simplify()
File "c:\users\xxx\desktop\paper\graphllm\simbiber\Simbiber\SimBiberTool.py", line 78, in simplify
self.__simplify__()
File "c:\users\xxx\desktop\paper\graphllm\simbiber\Simbiber\SimBiberTool.py", line 53, in __simplify__
self.__simplify_and_write__(s)
File "c:\users\xxx\desktop\paper\graphllm\simbiber\Simbiber\SimBiberTool.py", line 18, in __simplify_and_write__
self.bib.simplify_bib(s)
File "c:\users\xxx\desktop\paper\graphllm\simbiber\Simbiber\BibTool.py", line 118, in simplify_bib
self.bib_database.entries[self.index]=self.__simplify_bib__(item)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\xxx\desktop\paper\graphllm\simbiber\Simbiber\BibTool.py", line 49, in __simplify_bib__
with open("keep_keys.cfg") as f:
^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'keep_keys.cfg'
是否可以像Rebiber一样,更改必要信息的同时保留原始.bib
文件中存在的其它信息,为用户提供更多选择?如我现在只想缩写会议名称,但仍需保留页码,用Simbiber会带来一些不便。
如果这背离了你们的初衷,也可以考虑将其作为可选功能,需在命令行中指定。
Thanks a lot.
Simbiber工具在处理一篇CVPR的时候貌似出了些问题,处理完只剩author
和title
了。
处理前:
@inproceedings{zhang_open-book_2021,
author = {Zhang, Ziqi and Qi, Zhongang and Yuan, Chunfeng and Shan, Ying and Li, Bing and Deng, Ying and Hu, Weiming},
date = {2021},
eventtitle = {Proceedings of the {IEEE}/{CVF} Conference on Computer Vision and Pattern Recognition},
file = {Full Text PDF:D\:\\Zotero_Data\\storage\\4SQ2DJ8E\\Zhang 等。 - 2021 - Open-Book Video Captioning With Retrieve-Copy-Gene.pdf:application/pdf;Snapshot:D\:\\Zotero_Data\\storage\\LXXMRANI\\Zhang_Open-Book_Video_Captioning_With_Retrieve-Copy-Generate_Network_CVPR_2021_paper.html:text/html},
langid = {english},
pages = {9837--9846},
title = {Open-Book Video Captioning With Retrieve-Copy-Generate Network},
url = {https://openaccess.thecvf.com/content/CVPR2021/html/Zhang_Open-Book_Video_Captioning_With_Retrieve-Copy-Generate_Network_CVPR_2021_paper.html},
urldate = {2022-04-26}
}
处理后:
@inproceedings{zhang_open-book_2021,
author = {Zhang, Ziqi and Qi, Zhongang and Yuan, Chunfeng and Shan, Ying and Li, Bing and Deng, Ying and Hu, Weiming},
title = {Open-Book Video Captioning With Retrieve-Copy-Generate Network}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.