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 intall
poetry shell
python -m spacy download en_core_web_sm
st_ner_annotate/__init__.py
change _RELEASE
to False
streamlit run st_ner_annotate/__init__.py
cd st_codemirror_diff/frontend
npm install
npm start
http://localhost:8501
npm run build
in st_ner_annotate/frontend
st_ner_annotate/__init__.py
change _RELEASE
to True
poetry shell
python setup.py sdist bdist_wheel
st_ner_annotate-<version>-py3-none-any.whl
in the dist
dirpython -m pip install <path-to-st_ner_annotate.whl>