Skip to content

ConflictingTheories/spacy_ws

Repository files navigation

spacyio_ws

Example of Combining Websockets with Spacy.io NLP Library.

Example of Websocket streaming data as typed and returning Entities identified by Spacy Library.

Server / Client

Server acts like an NLP API - Opens a websocket listener and then waits for a connection. When connected, it reads the stream and then parses the stream through the NLP model and returns identified entities.

Client opens a connection to the server - then it allows the user to type and whatever is typed is streamed to the NLP model.

    # setup
    sudo setup.sh
    ./run.sh

This opens a portal on your localhost which you can access from your web browser. It will allow you load data sets, code entities, and load different models and test them.

Training

Shows an example of training a new dataset - very basic example. Data learned is trained and stored in the model folder.

    # setup
    sudo setup.sh
    ./train.sh

Mentions / usage

Created by Kyle Derby MacInnis for the purpose of learning. Please use to learn, but if using code, please reference me as the author.

    copyright (c) 2019 Kyle Derby MacInnis

About

Websocket example with Spacy.io

Topics

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published