https://github.com/conflictingtheories/spacy_ws
Websocket example with Spacy.io
https://github.com/conflictingtheories/spacy_ws
nlp spacy spacy-models spacy-ner websocket
Last synced: 2 months ago
JSON representation
Websocket example with Spacy.io
- Host: GitHub
- URL: https://github.com/conflictingtheories/spacy_ws
- Owner: ConflictingTheories
- License: gpl-3.0
- Created: 2019-08-27T02:12:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T14:37:08.000Z (over 2 years ago)
- Last Synced: 2025-04-11T21:08:22.155Z (2 months ago)
- Topics: nlp, spacy, spacy-models, spacy-ner, websocket
- Language: JavaScript
- Size: 383 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.shThis 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