Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to link reviewers and their reviews as a PC on conference #2307

Open
adinriv opened this issue Aug 6, 2024 · 2 comments
Open

How to link reviewers and their reviews as a PC on conference #2307

adinriv opened this issue Aug 6, 2024 · 2 comments

Comments

@adinriv
Copy link

adinriv commented Aug 6, 2024

I'm trying to analyze the reviews on a venue I was a PC using APIv2.

I was able to retrieve the reviewers and reviews per submission following the documentation. However, when a submission has reviewers that didn't submitted their reviews the assignment is no one to one. I was looking for a way to match the assigned reviewers and their reviews.

I was thinking about:

  • getting the anonymous name and then do the match by hand
  • find the reviews by the reviewer, and then sift through the submission

Is there a better way of doing it with the API? What is the supposed way to retrieve this information?

import openreview

client = openreview.api.OpenReviewClient(baseurl='https://api2.openreview.net', username='**', password='**') 
venue_id="**"
venue_group = client.get_group(venue_id)

# strings
submission_name = venue_group.content['submission_name']['value']
review_name = venue_group.content['review_name']['value']


submissions = client.get_all_notes(invitation=f'{venue_id}/-/{submission_name}', details='replies')
for submission in submissions:
    # Assigned reviewers per submission
    submission_reviewers = client.get_group(f'{venue_id}/{submission_name}{submission.number}/Reviewers')
    
    # Replies
    # sift through the replies for the official reviews (maybe useful if I want to compute interactions as well)
    # reviews = [r for r in submission.details['directReplies'] if f'{venue_id}/{submission_name}{submission.number}/-/{review_name}' in r['invitations']]
    # direct reviews from notes
    reviews = client.get_all_notes(invitation=f'{venue_id}/{submission_name}{submission.number}/-/{review_name}')

    # how to link the submission_reviewers and the reviews?
@melisabok
Copy link
Member

the review note has a field called "signatures" that contains a group id, if you get that group then you can check its member that must contain the profile id of the reviewer that posted that review.

@adinriv
Copy link
Author

adinriv commented Aug 6, 2024

That was the missing link. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants