Code Monkey home page Code Monkey logo

simbiber's People

Contributors

lightchen233 avatar qiushisun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

simbiber's Issues

No such file or directory: 'keep_keys.cfg'

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'

Why not retain more information?

是否可以像Rebiber一样,更改必要信息的同时保留原始.bib文件中存在的其它信息,为用户提供更多选择?如我现在只想缩写会议名称,但仍需保留页码,用Simbiber会带来一些不便。
如果这背离了你们的初衷,也可以考虑将其作为可选功能,需在命令行中指定。
Thanks a lot.

似乎会把*ACL 都简化为proc.ACL

没有细看代码;似乎是因为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'

feature "-keep" is not usable

$ 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

A sample error

Simbiber工具在处理一篇CVPR的时候貌似出了些问题,处理完只剩authortitle了。

处理前:

@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}
}

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.