Skip to content

collections.paper

Paper

A paper entry.

Required Attributes:

Name Type Description
id str

The ID of this paper (e.g. "1" or "42").

parent Volume

The Volume object that this paper belongs to.

bibkey str

Bibliography key, e.g. for BibTeX. Must be unique across all papers in the Anthology.

title MarkupText

The title of the paper.

List Attributes:

Name Type Description
attachments dict[str, AttachmentReference]

File attachments of this paper. The dictionary key specifies the type of attachment (e.g., "software").

authors list[NameSpecification]

Names of authors associated with this paper; can be empty.

awards list[str]

Names of awards this has paper has received; can be empty.

editors list[NameSpecification]

Names of editors associated with this paper; can be empty.

errata list[PaperErratum]

Errata for this paper; can be empty.

revisions list[PaperRevision]

Revisions for this paper; can be empty.

videos list[VideoReference]

Zero or more references to video recordings belonging to this paper.

Optional Attributes:

Name Type Description
abstract Optional[MarkupText]

The full abstract.

deletion Optional[PaperDeletionNotice]

A notice of the paper's retraction or removal, if applicable.

doi Optional[str]

The DOI for the paper.

ingest_date Optional[str]

The date of ingestion.

language Optional[str]

The language this paper is (mainly) written in. When given, this should be a ISO 639-2 code (e.g. "eng"), though occasionally IETF is used (e.g. "pt-BR").

note Optional[str]

A note attached to this paper. Used very sparingly.

pages Optional[str]

Page numbers of this paper within its volume.

paperswithcode Optional[PapersWithCodeReference]

Links to code implementations and datasets as provided by Papers with Code.

pdf Optional[PDFReference]

A reference to the paper's PDF.

address property

address

The publisher's address for this paper. Inherited from the parent Volume.

bibtype property

bibtype

The BibTeX entry type for this paper.

collection_id property

collection_id

The collection ID this paper belongs to.

full_id property

full_id

The full anthology ID of this paper (e.g. "L06-1042" or "2022.emnlp-main.1").

full_id_tuple property

full_id_tuple

The full anthology ID of this paper, as a tuple (e.g. ("L06", "1", "42")).

is_deleted property

is_deleted

Returns True if this paper was retracted or removed from the Anthology.

is_frontmatter property

is_frontmatter

Returns True if this paper represents a volume's frontmatter.

month property

month

The month of publication. Inherited from the parent Volume.

publisher property

publisher

The paper's publisher. Inherited from the parent Volume.

root property

root

The Anthology instance to which this object belongs.

venue_ids property

venue_ids

List of venue IDs associated with this paper. Inherited from the parent Volume.

volume_id property

volume_id

The volume ID this paper belongs to.

web_url property

web_url

The URL of this paper's landing page on the ACL Anthology website.

year property

year

The year of publication. Inherited from the parent Volume.

from_frontmatter_xml classmethod

from_frontmatter_xml(parent, paper)

Instantiates a new paper from a <frontmatter> block in the XML.

from_xml classmethod

from_xml(parent, paper)

Instantiates a new paper from its <paper> block in the XML.

This function can also be called with a <frontmatter> block, in which case it will just defer to self.from_frontmatter_xml.

get_editors

get_editors()

Returns:

Type Description
list[NameSpecification]

self.editors, if not empty; the parent volume's editors otherwise.

get_events

get_events()

Returns:

Type Description
list[Event]

A list of events associated with this paper.

get_ingest_date

get_ingest_date()

Returns:

Type Description
date

The date when this paper was added to the Anthology. Inherits from its parent volume. If not set, will return constants.UNKNOWN_INGEST_DATE instead.

to_bibtex

to_bibtex(with_abstract=False)

Generate a BibTeX entry for this paper.

Parameters:

Name Type Description Default
with_abstract bool

If True, includes the abstract in the BibTeX entry.

False

Returns:

Type Description
str

The BibTeX entry for this paper as a formatted string.

to_xml

to_xml()

Returns:

Type Description
_Element

A serialization of this paper as a <paper> or <frontmatter> block in the Anthology XML format.

PaperDeletionNotice

A notice about a paper's deletion (i.e., retraction or removal) from the Anthology.

date instance-attribute

date

The date on which the paper was retracted or removed.

note instance-attribute

note

A note explaining the retraction or removal.

type instance-attribute

type

Type indicating whether the paper was retracted or removed.

from_xml classmethod

from_xml(element)

Instantiates a deletion notice from its <removed> or <retracted> block in the XML.

to_xml

to_xml()

Returns:

Type Description
_Element

A serialization of this deletion notice in Anthology XML format.

PaperDeletionType

Bases: Enum

Type of deletion of a paper.

REMOVED class-attribute instance-attribute

REMOVED = 'removed'

Paper was removed. A removal occurs in rare circumstances where serious ethical or legal issues arise, such as plagiarism.

RETRACTED class-attribute instance-attribute

RETRACTED = 'retracted'

Paper was retracted. A retraction occurs when serious, unrecoverable errors are discovered, which drastically affect the findings of the original work.

PaperErratum

An erratum for a paper.

date class-attribute instance-attribute

date = field(default=None)

The date where this erratum was added.

id instance-attribute

id

An ID for this erratum.

pdf instance-attribute

pdf

A reference to the erratum's PDF.

from_xml classmethod

from_xml(element)

Instantiates an erratum from its <erratum> block in the XML.

to_xml

to_xml()

Returns:

Type Description
_Element

A serialization of this erratum in Anthology XML format.

PaperRevision

A revised version of a paper.

date class-attribute instance-attribute

date = field(default=None)

The date where this revision was added.

id instance-attribute

id

An ID for this revision.

note instance-attribute

note

A note explaining the reason for the revision.

pdf instance-attribute

pdf

A reference to the revision's PDF.

from_xml classmethod

from_xml(element)

Instantiates a revision from its <revision> block in the XML.

to_xml

to_xml()

Returns:

Type Description
_Element

A serialization of this revision in Anthology XML format.