Spico197 / DocEE

🕹️ A toolkit for document-level event extraction, containing some SOTA model implementations.
https://doc-ee.readthedocs.io/
MIT License
234 stars 36 forks source link

代码疑似错误 #60

Closed iamqiz closed 1 year ago

iamqiz commented 1 year ago

https://github.com/Spico197/DocEE/blob/2a323b0ee171f578d4c00e1b7c7c450f296306bd/Data/DuEEData/build_data.py#L255-L259

len(et_counter) == 0 and et_counter[0]

Spico197 commented 1 year ago

您好,感谢您对本项目的关注。可以再详细说说吗?

这段代码主要是帮助确定当前文档的类型:

从代码逻辑上,我没有发现可能存在的错误,麻烦您再详细解释一下?

iamqiz commented 1 year ago

len(et_counter) == 0 了 怎么还能 et_counter[0] ?

Spico197 commented 1 year ago

谢谢您的指正,确实是写岔了,当时看了几遍竟然没看出来orz。马上修改。

Spico197 commented 1 year ago

抱歉给大家带来困扰了,已更新代码。再次感谢您的贡献和帮助。祝元旦快乐!