jgontrum / spacy-api-docker

spaCy REST API, wrapped in a Docker container.
https://hub.docker.com/r/jgontrum/spacyapi/
MIT License
265 stars 99 forks source link

Is it possible to train data? #37

Open rsoika opened 4 years ago

rsoika commented 4 years ago

Is it possible to use the spacy-api-docker image also to train data? For example I want to send training data for custom entities like:

TRAIN_DATA = [
    (
        "Horses are too tall and they pretend to care about your feelings",
        {"entities": [(0, 6, MY_ANIMAL)]},
    ),
    ("Do they bite?", {"entities": []}),
    (
        "horses are too tall and they pretend to care about your feelings",
        {"entities": [(0, 6, MY_ANIMAL)]},
    ),
]
pietracorvo commented 3 years ago

Hi,

my company is also interested in using your service. Do you have any time estimate when training dockerized spacy will be integrated as a feature?

Best Alexander

rsoika commented 3 years ago

I was eventually able to set up a Docker image with fastapi and spacy to provide the interfaces. You may find some ideas in our project Imixs-ML. https://github.com/imixs/imixs-ml/tree/master/imixs-ml-spacy