This script helps to evaluate how many annotations per annotator exist within an exported project's snapshot:
import sys
import json
from collections import Counter
tasks = json.load(open(sys.argv[1]))
emails = []
for task in tasks:
for annotation in task['annotations']:
emails.append(annotation['completed_by']['email'])
c = Counter(emails)
for email, count in c.most_common():
print(email, count)
print('Total', len(emails))
To run the script, use the command below, including the file name of the export you want to evaluate:
python scriptName.py project-export-name.jsonYou should see an output similar to the below:
user1@example.com 8
user2@example.com 5
user3@example.com 2
Total 15