icoxfog417 / acl-anthology

Script to get ACL Anthology
MIT License
16 stars 1 forks source link

The instructions don't work #1

Closed danyaljj closed 5 years ago

danyaljj commented 5 years ago
Conference.ACL(2018).retrieve("P18-5").to_dataframe().to_csv("acl2018.csv", index=False)

Gives me the following error:

huntsman-ve506-0712:acl-anthology daniel$ python 
Python 3.7.1 (default, Oct 23 2018, 14:07:42) 
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from acl.conference import Conference

>>> 
>>> Conference.ACL(2018).retrieve("P18-5").to_dataframe().to_csv("acl2018.csv", index=False)

Download P18-5.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/daniel/ideaProjects/acl-anthology/acl/conference.py", line 36, in retrieve
    interval, with_arxiv)
  File "/Users/daniel/ideaProjects/acl-anthology/acl/conference.py", line 51, in retrieve_from_element
    paper_count = self.anthologies[t].count
KeyError: 'P18-5'
icoxfog417 commented 5 years ago

ACL website seems to change its design. (https://github.com/acl-org/acl-anthology/issues/170).

Please wait to catch up design change!