Skip to content

Microservice built with a streamlit UI, utilizing a bottle.py server and Spacy for named entity recognition. Instructions provided to run locally or build up with Docker-compose.

Notifications You must be signed in to change notification settings

NickMarozick/simpleNamedEntityRecognitionService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Named Entity Recognition Service

Simple streamlit UI, utilizing a bottle.py server,showcasing the Spacy entity recognition service. Please find the instructions below to run locally or via docker compose.

How to Run via Docker-compose

  1. Clone the project repo
  2. Once you have navigated to the project directory in terminal, run these commands:
    1. docker-compose up
    2. docker-compose build
  3. You will see the URL that can access the UI for the app, http://0.0.0.0:8081
  4. Input text into the text box, click run analysis, and view the results of the Named Entity Recognition service

How to Run Locally:

Make sure you are using python3

After cloning the repo, navigate into ther runLocal directory

Once in the directory, run: pip3 install -r requirements.txt

You will need to Build the UI and Service Seperately

Get the Bottle Server Started First

  1. python3 server.py

  2. Leave this terminal open and open a new terminal window

Starting the Streamlit UI

  1. In the new terminal window input streamlit run simpleUI.py
  2. You browser should automatically open up, but if not go to the web browser and navigate to the Local URL link noted in terminal
  3. Input text into the text box
  4. Click on the button 'Run Service'
  5. The text data will be sent via HTTP post to our bottle server. The bottle server utilizes spacy and runs the named entity recognition and returns the JSON result to our UI via GET which populates on the screen

About

Microservice built with a streamlit UI, utilizing a bottle.py server and Spacy for named entity recognition. Instructions provided to run locally or build up with Docker-compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published