I am working on a streamlit app to let users accept or reject the NER tags generated from a model. I want the selectbox to be displayed next to the tags within the text, as shown in the screenshot below:
If you are not looking for that exact same look, you could cycle through columns while writing pairs of st.markdown and st.selectbox in a couple of nested columns. Hereβs an example using stanza:
Hi edsaac, thank you very much for sharing a working example of presenting a tag and select box in two columns. The end-users prefer the look in my screenshot because it allows them to easily read the whole sentence and determine whether to accept or reject the tag.