https://github.com/rggh/api-4
Using FastAPI with spaCy to identify entities
https://github.com/rggh/api-4
docker fastapi python spacy
Last synced: about 1 month ago
JSON representation
Using FastAPI with spaCy to identify entities
- Host: GitHub
- URL: https://github.com/rggh/api-4
- Owner: RGGH
- Created: 2021-12-17T18:42:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-02T21:49:22.000Z (about 2 years ago)
- Last Synced: 2025-02-02T03:32:46.459Z (3 months ago)
- Topics: docker, fastapi, python, spacy
- Language: HTML
- Homepage:
- Size: 177 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API-4
### Using FastAPI with spaCy to identify entities
clone repo
install requirements and the spaCy 'en_core_web_sm' file
`# python3 -m spacy download en_core_web_sm`
run
`❯ uvicorn main:app --reload`
open ents.html on localhost "http://127.0.0.1:8000/ents/html"
### Try it out using Docker instead
`sudo docker pull rggh/spacy_ner:7`
`sudo docker run -it -p 8000:8000 rggh/spacy_ner:7`#### check the app is running with Docker
`http://127.0.0.1:8000/docs#/default/vars_ents_post`
- run `python3 test_1.py` to test spaCy function once Docker is started
