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

Overlapping annotations for human campaigns + custom JS highlighting library #177

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

kasnerz
Copy link
Collaborator

@kasnerz kasnerz commented Dec 23, 2024

This pull request enables human annotators to create overlapping annotations 🎉

To make it possible, we switched from the YPet.js library to our custom SpanAnnotator implemented in static/js/span-annotator.js.

Internally, collecting annotations is now much more transparent and tweakable. We now also use our SpanAnnotator both for the annotation interface and for the browse interface.

Users can now control whether they want to enable overlapping annotations in the campaign config. (The option is disabled by default.)

This pull request also brings visual improvements 🌈

  • We restrict the choice of span colors to a subset of darker, saturated colors using Huebee.js
  • We use underline + bold text + text color to denote annotations. (This works well with overlapping annotations!)
demo.mp4

If this pull request is merged, we should:

  • update wiki to reflect these changes
  • make a new release

Resolves #31

@kasnerz kasnerz requested a review from oplatek December 23, 2024 17:34
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

Successfully merging this pull request may close these issues.

Annotations in the crowdsourcing interface cannot overlap
1 participant