GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — paperswithcode-client/docs/quickstart.rst at develop · paperswithcode/paperswithcode-client

Expand file tree

/

quickstart.rst

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
58 lines (44 loc) · 1.5 KB
/

quickstart.rst

Copy path

File metadata and controls

58 lines (44 loc) · 1.5 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

Quickstart

Library is designed to work with python objects. All of the models used as return values in the library are described in the API part of the documentation.

To use the library you only need to import and instantiate the client and start calling methods on it:

>>> from paperswithcode import PapersWithCodeClient
>>> client = PapersWithCodeClient()
>>> papers_page = client.paper_list()
>>> papers_page.count
175834
>>> papers_page.next_page
2
>>> paper = papers_page.results[0]
>>> paper.id
'efficient-methods-for-incorporating-knowledge'
>>> paper.title
'Efficient Methods for Incorporating Knowledge into Topic Models'

Same principle is used for all models.

>>> dataset_page = client.dataset_list()
>>> dataset_page.count
2782
>>> dataset_page.results[0].id
'hci'
>>> dataset_page.results[0].name
'HCI'

For nested queries you will need to provide the required id's:

>>> conference_page = client.conference_list()
>>> conference = conference_page.results[0]
>>> conference.id
'eccv'
>>> proceedings_page = client.proceeding_list(conference_id=conference.id)
>>> proceeding = proceedings_page.results[0]
>>> proceeding.id
'eccv-2018'
>>> papers = client.proceeding_paper_list(
    conference_id=conference.id, proceeding_id=proceeding.id
)
>>> papers[0].title
'Person Search by Multi-Scale Matching'
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.