Skip to content

Commit

Permalink
Ingest jep/taln/recital 2019 and 2020 (acl-org#957)
Browse files Browse the repository at this point in the history
* Added jepn/taln/recital 2019
* Added jepn/taln/recital 2020
* added language field; lowercase volume names
  • Loading branch information
mjpost authored Aug 30, 2020
1 parent 732ccee commit 76854fe
Show file tree
Hide file tree
Showing 4 changed files with 2,588 additions and 6 deletions.
5 changes: 1 addition & 4 deletions bin/create_hugo_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ def create_volumes(srcdir, clean=False):
{
"anthology_id": anthology_id,
"title": entry["title"],
"aliases": [
"/volumes/{}/".format(slugify(entry["title"])),
paper_dir,
],
"aliases": [paper_dir,],
},
default_flow_style=False,
stream=f,
Expand Down
5 changes: 3 additions & 2 deletions bin/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def bib2xml(bibfilename, anthology_id):
'abstract',
'url',
'doi',
'language',
]

collection_id, volume_name, paper_no = deconstruct_anthology_id(anthology_id)
Expand Down Expand Up @@ -175,7 +176,7 @@ def main(args):
meta["collection_id"] = collection_id = (
meta["year"] + "." + meta["abbrev"].lower()
)
volume_name = meta["volume"]
volume_name = meta["volume"].lower()
volume_full_id = f"{collection_id}-{volume_name}"

if volume_full_id in volumes:
Expand All @@ -197,7 +198,7 @@ def main(args):
root_path = os.path.join(meta["path"], "cdrom")
collection_id = meta["collection_id"]
venue_name = meta["abbrev"].lower()
volume_name = meta["volume"]
volume_name = meta["volume"].lower()
year = meta["year"]

pdfs_dest_dir = os.path.join(args.pdfs_dir, venue_name)
Expand Down
Loading

0 comments on commit 76854fe

Please sign in to comment.