From 5b701628af814e0f8aaba355f7dcbe4333a5a618 Mon Sep 17 00:00:00 2001 From: Umachandar Jayachandran Date: Mon, 30 Oct 2017 22:06:36 -0700 Subject: [PATCH] Update pretrainedmodel_sentiment_analysis.sql --- .../pretrainedmodel_sentiment_analysis.sql | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/samples/features/machine-learning-services/python/sentiment-analysis/pretrainedmodel_sentiment_analysis.sql b/samples/features/machine-learning-services/python/sentiment-analysis/pretrainedmodel_sentiment_analysis.sql index f4b129b2..5c118f8b 100644 --- a/samples/features/machine-learning-services/python/sentiment-analysis/pretrainedmodel_sentiment_analysis.sql +++ b/samples/features/machine-learning-services/python/sentiment-analysis/pretrainedmodel_sentiment_analysis.sql @@ -22,13 +22,12 @@ AS BEGIN DECLARE @script nvarchar(max); ---Check that text is not empty -IF NULLIF(@text, '') is null -BEGIN -THROW 50001, 'Please specify a text value to be analyzed.', 1; -RETURN -END - + --Check that text is not empty + IF NULLIF(@text, '') is null + BEGIN + THROW 50001, 'Please specify a text value to be analyzed.', 1; + RETURN + END --The Python script we want to execute SET @script = N' @@ -69,4 +68,4 @@ GO --Positive review EXECUTE [dbo].[get_sentiment] N'These are the cutest things ever!! Super fun to play with and the best part is that it lasts for a really long time. So far these have been thrown all over the place with so many of my friends asking to borrow them because they are so fun to play with. Super soft and squishy just the perfect toy for all ages.' -GO \ No newline at end of file +GO