-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpaper.py
More file actions
52 lines (43 loc) · 1.42 KB
/
paper.py
File metadata and controls
52 lines (43 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from datetime import date
from typing import Optional
from paperswithcode.models.page import Page
from paperswithcode.models.model import Model
class Paper(Model):
"""Paper object.
Attributes:
id: Paper ID.
arxiv_id: ArXiv ID.
nips_id: NIPS Conference ID.
url_abs: URL to the paper abstract.
url_pdf: URL to the paper PDF.
title: Paper title.
abstract: Paper abstract.
authors: List of paper authors.
published: Paper publication date.
conference: ID of the conference in which the paper was published.
conference_url_abs: URL to the conference paper page.
conference_url_pdf: URL to the conference paper PDF.
proceeding: ID of the conference proceeding in which the paper was published.
"""
id: str
arxiv_id: Optional[str]
nips_id: Optional[str]
url_abs: str
url_pdf: str
title: str
abstract: str
authors: list[str]
published: date
conference: Optional[str]
conference_url_abs: Optional[str]
conference_url_pdf: Optional[str]
proceeding: Optional[str]
class Papers(Page):
"""Object representing a paginated page of papers.
Attributes:
count: Number of elements matching the query.
next_page: Number of the next page.
previous_page: Number of the previous page.
results: List of papers on this page.
"""
results: list[Paper]