Skip to content

Commit 5b70162

Browse files
authored
Update pretrainedmodel_sentiment_analysis.sql
1 parent 0d8ee70 commit 5b70162

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

samples/features/machine-learning-services/python/sentiment-analysis/pretrainedmodel_sentiment_analysis.sql

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ AS
2222
BEGIN
2323
DECLARE @script nvarchar(max);
2424

25-
--Check that text is not empty
26-
IF NULLIF(@text, '') is null
27-
BEGIN
28-
THROW 50001, 'Please specify a text value to be analyzed.', 1;
29-
RETURN
30-
END
31-
25+
--Check that text is not empty
26+
IF NULLIF(@text, '') is null
27+
BEGIN
28+
THROW 50001, 'Please specify a text value to be analyzed.', 1;
29+
RETURN
30+
END
3231

3332
--The Python script we want to execute
3433
SET @script = N'
@@ -69,4 +68,4 @@ GO
6968

7069
--Positive review
7170
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.'
72-
GO
71+
GO

0 commit comments

Comments
 (0)