Skip to content

Instantly share code, notes, and snippets.

View mjpost's full-sized avatar

Matt Post mjpost

View GitHub Profile
@mjpost
mjpost / get_citation_counts.py
Last active February 14, 2024 12:58
Uses the Semantic Scholar API (with Anthology support!) to get paper citation counts for an Anthology volume
#!/usr/bin/env python3
"""Uses the Semantic Scholar API to get citation counts for all papers in
an ACL volume. Assumes old-style IDs (e.g., P96-1).
Mad props to Semantic Scholar for making this so easy.
"""
import json
import os
@mjpost
mjpost / doi-2020.emnlp-main.xml
Last active March 4, 2022 15:27
XML file submitted to DOI for EMNLP 2020 main conference papers
<?xml version='1.0' encoding='UTF-8'?>
<doi_batch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.crossref.org/schema/4.4.1" xsi:schemaLocation="http://www.crossref.org/schema/4.4.1 http://www.crossref.org/schema/deposit/crossref4.4.1.xsd" version="4.4.1">
<head>
<doi_batch_id>1646395517</doi_batch_id>
<timestamp>1646395517</timestamp>
<depositor>
<depositor_name>Matt Post</depositor_name>
<email_address>[email protected]</email_address>
</depositor>
<registrant>Association for Computational Linguistics</registrant>