Updates From thomas-hervey
Installation
- dependencies are installed in a pyenv virtualenv called
spacy-service
. Once activated, requirements.txt were installed in that virtualenv - Most models in the services are commented out because we are only using English (for now)
- Updated hug to
hug==2.4.8
in order to prevent server errors (see comment here)[ines/spacy-js#5 (comment)]
TODOS
- clarify the responses in
query_log_analysis
endpoints - expand the endpoints in
query_log_analysis
- dockerize existing services (displacy, matcher, sense2vec)
spaCy REST services
This repository includes REST microservices for various spaCy-related tasks. The
services power our interactive demos and can be
used as examples of exposing spaCy's capabilities as a microservice. All APIs
are built with hug
and
require Python 3. The following services are available โ for more details,
see the API docs in the respective directories.
Service | Description | Example |
---|---|---|
displacy |
Serve a spaCy model and extract dependencies and named entities. | ๐ผ, ๐ผ |
sense2vec |
Serve a sense2vec model with automatic sense detection. | ๐ผ |
matcher |
Run a match pattern over a text and return the matches and tokens as JSON. | ๐ผ |