rmarquet21/streamlit-annotation-tools

Annotation workflow proposal

Opened this issue ยท 0 comments

That new label based version really is great! ๐ŸŽ‰ However I have the feeling it doesn't match the annotator user experience: it is not straightforward how to visualize all annotations and how to edit an existing annotation.

If I may, here is an proposition:
You could build upon the st annotated text lib: https://st-annotated-text.streamlit.app/
It features an easy way to visualize annotations, as they are in the text, with the category directly integrated in the annotation, and an automatic color box so that all annotations from the same category share the same color.
CleanShot 2023-12-08 at 13 32 37@2x

As an annotator, I might want then to :

  • visualize previous annotations loaded just like st annotated text
  • delete an annotation by directly clicking on the annotation. Here is a suggestion
CleanShot 2023-12-08 at 13 34 36@2x
  • create a new annotation, by selecting a word (just like you support texte selection today), and then displaying a selection input. Here is a suggestion
CleanShot 2023-12-08 at 13 36 56@2x

I assume the categories would be picked from a fixed list.