Skip to content
/ API-4 Public

Using FastAPI with spaCy to identify entities

Notifications You must be signed in to change notification settings

RGGH/API-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Spacy