This is a component to assist with the annotation of named entities in an unstructured piece of text. The concept for this is borrowed from what is offered by Prodi.gy. This code is derived from the work done by andfalino in his excellent streamlit-named-entity-svelte repository.
The functionality has been expanded to allow for selecting of new entities and uses the streamlit-component-svelte-template.
I am also using this component as a testbed to get familiar with streamlit custom components and svelte.
NOTE This is a work in progress
poetry intallpoetry shellpython -m spacy download en_core_web_smst_ner_annotate/__init__.py change _RELEASE to False streamlit run st_ner_annotate/__init__.pycd st_codemirror_diff/frontendnpm installnpm starthttp://localhost:8501npm run build in st_ner_annotate/frontendst_ner_annotate/__init__.py change _RELEASE to Truepoetry shellpython setup.py sdist bdist_wheelst_ner_annotate-<version>-py3-none-any.whl in the dist dirpython -m pip install <path-to-st_ner_annotate.whl>