This is an example NER service using Spacy and was built to show Data Scientists & Analysts a quick way to turn their models into deployable services.
-
download poetry
brew install poetry
-
download poppler for mac to process PDF
brew install poppler
. Other Os install ref- Test if the install run sucessfully by running
pdftoppm -h
pdftoppm -png fargo.pdf fargo
- This will convert pdf pages to images- Available tools from poppler:
- some examples are pdfimages, pdftotext, pdftohtml, pdfinfo, pdftopng, pdffonts.
- Read the docker file to know what libraries were installed to make opencv work
- Test if the install run sucessfully by running
poetry init
to initialize a projectpoetry shell
- This will initiate a venv enviroment- uvicorn src.main:app --reload or
bash runDocker.sh
to run the docker command
docker build -t kiri23/fast-api-nlp:latest .
docker run -p 80:80 kiri23/fast-api-nlp:latest
- Using
opencv-python-headless
fixed error on docker about not file found for opencv - The image window for opencv only work locally and then it never close
- The image window does not want to work on docker.
- To select intepreter on vs code https://user-images.githubusercontent.com/18028544/175776994-36b20dda-3a4b-42dc-9df3-35aa106968e0.mov