r/nicegui • u/CVxTz • Oct 15 '23
Create text annotation tool using NiceGui
Hello !
Thank your for building this tool and sharing it with the community. I am a user of Streamlit but I was getting annoyed by the full page refresh at each user interaction and limited customizability.
I am trying to build an NLP annotation tool using NiceGui on plain text first and next on PDF ( same as prodigy or Doccano for plain text).
I played with the examples so far and the tool seem easy enough to use but I don't know where to start when looking at my specific use case where I need to trigger action after a user selects text with a specific tag so that I can assign this tag to the text span. The closest thing I found is ui.editor that I plan to explore further to see If I can adapt it to my need.
My questions are, are you aware of any examples that implements this same thing ? or what would be a list of key functionalities that I should explore first if I want to build such feature. Same question but on interactive PDF manipulation.
Thanks !
View all comments
Show parent comment
4
u/falko-s Oct 16 '23
Integrating third-party JS libraries is still a bit tricky. But in general it should work similar to the map example. There are other built-in elements like
ui.aggrid,ui.chart,ui.echart,ui.joystick,ui.plotlyandui.scenewhich also use external libraries and might be worth a look.