Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Enhancement/Approve labels #258
As discussed in #249, it is a very useful feature to enable a type of users to review and approve labels that other users annotated. The review feature for example enables workflows like the ones discussed in #65 where many users can annotate the dataset and then some trusted users can verify the labels before we use them for downstream workflows such as model building.
As such, this pull request implements a simple label review mechanism: admin users now see a button on the annotation page that enables them to approve or reject labels. The approval is shown in the exported datasets so that downstream applications can exclude non-approved labels.
In the future, this feature can be expanded to for example include multiple reviewers per document or to provide a customized "label reviewer" role whose document sort order by default shows labeled but not-reviewed documents first in the annotation view.