spacy-api-docker | spaCy REST API , wrapped in a Docker container | Natural Language Processing library
kandi X-RAY | spacy-api-docker Summary
kandi X-RAY | spacy-api-docker Summary
spaCy REST API, wrapped in a Docker container.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles GET request
- Return a list of the dep - type labels
- Get a list of entity types
- Get a list of POS labels
- Respond to HTTP POST request
- Return a JSON representation of the document
- Get a spacy model by name
- Respond to dependencies
- Serialize the document
- Respond to POST request
- Return a list of strings
- Start all the models
spacy-api-docker Key Features
spacy-api-docker Examples and Code Snippets
Community Discussions
Trending Discussions on spacy-api-docker
QUESTION
I am interested in using the spaCy python library for my own open source project. What I am searching for is a Rest-based API. What is necessary or what is the recommended way to expose the spaCy api via a common Rest interface? I already took a look into the spacy services and the spacy-api-docker project form jgontrum. But it seems there is no offical rest api available and everyone have to do it by himself. If so, what is the best way to wrap a python spaCy method/script into a rest api? There seems to be frameworks like falcon, hug and flask to help me in doing this.
But is it the recommended approach to write my own rest api server with one of these frameworks or is there something I have overseen and spaCy is already available via a rest api interface?
...ANSWER
Answered 2020-Apr-01 at 15:12spaCy is not deeply tied to any framework, so you can choose your favorite and use it.
Another option you might consider is FastAPI. For example, here's a simple spaCy entity recognition API:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spacy-api-docker
You can use spacy-api-docker like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page