rmarquet21 / streamlit-annotation-tools

Streamlit Annotation Tools is a Streamlit component that gives you access to various annotation tools (labeling, highlighting, etc.) for text data.
https://pypi.org/project/streamlit-annotation-tools
MIT License
72 stars 5 forks source link

Annotation workflow proposal #2

Open LaRiffle opened 9 months ago

LaRiffle commented 9 months ago

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 :

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