0.0.2 • Published 7 years ago
token-flow-service v0.0.2
token-flow-service
This projects takes a part of the functionality of the token-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.
Usage
- Install package:
npm install token-flow-service - Run tokenflow command, pointing to a yaml catalog:
tokenflow --catalog "sample-catalog.yaml" --port 2008If you don't have a catalog, use thesample-catalog.yamlin this repo for reference - Perform queries against your token-flow service by issuing GET requests against
http://localhost:[YOUR PORT]/getTokens/[YOUR QUERY]