-
Notifications
You must be signed in to change notification settings - Fork 154
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
Resize span #283
Comments
One possible way of doing this is offering "+/-1 token" buttons in the span annotation controls for the left and right border. |
Is there any progress on this feature or similar functionality. Currently it seems your only option is to detele and recreate an existing annotation and all its features to simply change the span. Whether its draggable handles in the UI, controls to move the end points or simply a button which lets you reselect the new span. A similar issue is still open #1632 Would the option of just selecting a new span and moving the features over in the backend once its successfully passed any initial validation be an option. |
There has been no progress on the issue so far. It is sitting in the backlog so we don't forget it and so that users can comment and indicate interest. There is a simple case if there is no validation - in that case, we could mostly just add some mechanism to allow for re-selection of spans (not sure about relations). The complicated case is if validation is turned on (e.g. if stacking is not allowed). In that case, we'd somehow need to avoid the existing span to clash with the validation of the re-located span (or relation). I've been recently thinking about it again and I think it could be easier than though by simply temporarily removing the annotation from the CAS indexes, then trying to create a new annotation at the target location, and if that worked without a validation problem, remove the new annotation again, adjust the position of the unindexed original annotation and then add it back to the indexes. But we'd need to avoid e.g. sending annotation-creation and annotation-deleted events for the annotation that is created temporarily. |
Right yes avoiding the current instance of the modified span could pose a problem, like you say if it can be removed or if the validation rules already checked for whether it was the same instance and ignored it that could also work. Thanks for updating on progress, it would be nice to see such a feature as it would support review flows from pre-generated annotations (and recommender outputs alike) where you need to make minor adjustments particular when there might be other features to copy. In lieu of that some simple ability to otherwise copy all the feature/attributes of another annotations (even if it had to be deleted first before creating the modified one) would be a potential work around. |
Just seeing this because it looks like I opened this issue a while back :) This was one of the most desirable features we wanted for entity and coreference annotation - you can see what we ended up implementing here: https://corpling.uis.georgetown.edu/gitdox/spannotator.html And indeed if you adjust spans to mal-nest at this URL, the interface will revert to the unedited span (but this is all client-side javascript, so there's no customizable datamodel or server-roundtrip for checking things). Having this possibility speeds up annotation very noticeably, and especially for correcting NLP output, since it's fairly easy for systems to guess that entities will appear around nouns, but the span often needs to be adjusted. I think it would be a great feature for Inception. |
- Introduce a new MoveSpanAnnotation action that allows changing the boundaries of a span without deleting/recreating it
- Add resizing functionality in brat editor - Add undo functionality for resizing actions
- Fix drag not ending when mouse is released outside event control scope - Fix drag starting whenever an annotation is clicked
- Add more classes to SVG elements in brat editor so we know what is what - Fix exception in selectionToOffsets if nothing was selected (i.e. no ranges)
* main: #3610 - Minimizing icon in document level feature is wrong after updating feature #3656 - The color of the existing layers changes after adding another layer #3679 - NullPointerException during export in WebAnno format #283 - Resize span #283 - Resize span #283 - Resize span #3675 - Clean up more brat code #3675 - Clean up more brat code #3675 - Clean up more brat code #3676 - Error when rejecting annotation suggestion #3675 - Clean up more brat code #1535 - Keyboard shortcuts do not work when focus is in certain editors #3571 - Update dependencies #3670 - Remove LIF support #3670 - Remove LIF support [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release inception-26.3 #3650 - Link label shows layer name instead of label
* main: (64 commits) #3610 - Minimizing icon in document level feature is wrong after updating feature #3656 - The color of the existing layers changes after adding another layer #3679 - NullPointerException during export in WebAnno format #283 - Resize span #283 - Resize span #283 - Resize span #3675 - Clean up more brat code #3675 - Clean up more brat code #3675 - Clean up more brat code #3676 - Error when rejecting annotation suggestion #3675 - Clean up more brat code #1535 - Keyboard shortcuts do not work when focus is in certain editors #3571 - Update dependencies #3670 - Remove LIF support #3670 - Remove LIF support #3668 - Disable tutorial for now #3664 - Avoid server-side HTML composition not using Wicket #3664 - Avoid server-side HTML composition not using Wicket #283 - Resize span #3660 - Option to disable span clipping ...
- Fix resizing to the start of the document - Properly update the detail panel when the currently selected annotation is resized
- Fix warning in browser console about unsupplied parameter - Remove logging statement that is no longer needed
Drag indicator in the brat editor has wrong position in Safari (seems to work in chrome and firefox though). |
- Imrprove handling of resizing across different browsers. Chrome works best. Firefox and Safari have nasty quirks that we try to work around.
- Fix ability to draw a relation using drag/drop
- Avoid displaying resize handles in brat editor on synthetic annotations - Fix bug that used the wrong layer adapter to perform the resize operation
Resizing annotations in recent INCEpTION versions :) Screen.Recording.2023-04-04.at.16.45.58.mp4 |
It would be great if it were possible to modify the borders of a span annotation without having to delete it. This is especially important if there are edges connecting spans, since modifying the borders would allow us to correct annotations without having to re-do all attached edges.
The text was updated successfully, but these errors were encountered: