This workflow showcases how the Container Input (Variable) and Container Output (JSON) nodes can be used to create a REST API for a workflow that can then be deployed as inference workflow to KNIME Edge. The workflow can be called via REST and classifies a review as positive or negative.
When deployed to KNIME Edge, a POST request with the following JSON body can be used for testing:
{
"content": "What a crappy flight, I hated it! It was the worst experience ever"
}
The response will be:
{
"Prediction (Document class) (Confidence)": 0.7526856112217033,
"Prediction (Sentiment)": "Negative"
}
Workflow
Sentiment Analysis: JSON Input
Used extensions & nodes
Created with KNIME Analytics Platform version 4.4.0
- Go to item
- Go to item
- Go to item
- Go to item
- Go to item
- Go to item
Loading deployments
Loading ad hoc jobs
Legal
By using or downloading the workflow, you agree to our terms and conditions.