A command-line enabled express server that exposes a service to interact with the token-flow package from anywhere
npm install token-flow-servicetoken-flow package and exposes it through an express server. It exposes a basic command, tokenflow which takes the path to a .yaml catalog and a port. It creates an entity recognizer using the catalog, then routes incoming requests on the specified port to a tokenizer to return the recognized entities. Note: This service is exposing a small part of the token-flow functionality.
npm install token-flow-service
tokenflow --catalog "sample-catalog.yaml" --port 2008
sample-catalog.yaml in this repo for reference
http://localhost:[YOUR PORT]/getTokens/[YOUR QUERY]