thomas-hervey / spacy-services

๐Ÿ’ซ REST microservices for various spaCy-related tasks

Home Page:https://explosion.ai/demos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. ๐Ÿ–ผ

About

๐Ÿ’ซ REST microservices for various spaCy-related tasks

https://explosion.ai/demos

License:MIT License


Languages

Language:Python 95.3%Language:Dockerfile 4.7%