{"id":43184230,"url":"https://github.com/prasadchandan/st_ner_annotate","last_synced_at":"2026-02-01T04:10:37.934Z","repository":{"id":42035629,"uuid":"339247555","full_name":"prasadchandan/st_ner_annotate","owner":"prasadchandan","description":"Streamlit Named Entity Recognition (NER) annotation custom component","archived":false,"fork":false,"pushed_at":"2022-10-03T08:41:11.000Z","size":1046,"stargazers_count":23,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-02-26T16:15:40.560Z","etag":null,"topics":["spacy","streamlit","streamlit-component","svelte","sveltejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prasadchandan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-16T00:44:17.000Z","updated_at":"2023-02-01T13:49:29.000Z","dependencies_parsed_at":"2023-01-19T02:45:26.478Z","dependency_job_id":null,"html_url":"https://github.com/prasadchandan/st_ner_annotate","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/prasadchandan/st_ner_annotate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasadchandan%2Fst_ner_annotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasadchandan%2Fst_ner_annotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasadchandan%2Fst_ner_annotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasadchandan%2Fst_ner_annotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prasadchandan","download_url":"https://codeload.github.com/prasadchandan/st_ner_annotate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasadchandan%2Fst_ner_annotate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28967113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T03:46:10.227Z","status":"ssl_error","status_checked_at":"2026-02-01T03:46:01.693Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["spacy","streamlit","streamlit-component","svelte","sveltejs"],"created_at":"2026-02-01T04:10:37.353Z","updated_at":"2026-02-01T04:10:37.921Z","avatar_url":"https://github.com/prasadchandan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Streamlit Named Entity Recognition (NER) Annotation component\n\nThis 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](https://prodi.gy/). This code is derived from the work done by [andfalino](https://github.com/andfanilo) in his excellent [streamlit-named-entity-svelte](https://github.com/andfanilo/streamlit-named-entity-svelte) repository. \n\nThe functionality has been expanded to allow for selecting of new entities and uses the [streamlit-component-svelte-template](https://github.com/93degree/streamlit-component-svelte-template).\n\nI am also using this component as a testbed to get familiar with streamlit custom components and svelte. \n\n**NOTE** This is a work in progress\n### Development \n\n  - Backend\n    + Install [Poetry](https://python-poetry.org/)\n    + Run `poetry intall`\n    + Drop into a virtualenv shell `poetry shell`\n    + Install a spacy model `python -m spacy download en_core_web_sm`\n    + Edit `st_ner_annotate/__init__.py` change `_RELEASE` to `False` \n    + Run `streamlit run st_ner_annotate/__init__.py`\n  - Frontend\n    + `cd st_codemirror_diff/frontend`\n    + `npm install`\n    + `npm start`\n  - Now the frontend and backend should be up, the page can be accessed at `http://localhost:8501`\n\n### Development - Release\n  - Frontend\n    + Run `npm run build` in `st_ner_annotate/frontend`\n  - Backend\n    + Edit `st_ner_annotate/__init__.py` change `_RELEASE` to `True`\n    + Drop into python virtualenv by running `poetry shell`\n    + Build python dist wheels `python setup.py sdist bdist_wheel`\n    + This will create the python `st_ner_annotate-\u003cversion\u003e-py3-none-any.whl` in the `dist` dir\n    + Now install this via `python -m pip install \u003cpath-to-st_ner_annotate.whl\u003e`\n### Demo\n\n![Streamlit NER Annotate Demo GIF](repo-assets/st_ner_annotate_demo.gif)\n\n### References\n1. [Prodi.gy](https://prodi.gy/)\n2. [streamlit-named-entity-svelte](https://github.com/andfanilo/streamlit-named-entity-svelte)\n3. [streamlit-component-svelte-template](https://github.com/93degree/streamlit-component-svelte-template) \n4. Text sample in demo taken from wiki entry on [Manhattan](https://en.wikipedia.org/wiki/Manhattan)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprasadchandan%2Fst_ner_annotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprasadchandan%2Fst_ner_annotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprasadchandan%2Fst_ner_annotate/lists"}