public ActionResult <float> GetPrediction([FromQuery, Required] string text) { var observation = new SentimentObservation { Text = text }; var prediction = this.model.Predict(observation); return(prediction.Probability * 100); }
public ActionResult <SentimentPrediction> GetSentiment(SentimentObservation input) { return(_sentimentModel.Predict(input)); }