Skip to content

Commit

Permalink
Update pretrainedmodel_sentiment_analysis.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
uc-msft committed Oct 31, 2017
1 parent 0d8ee70 commit 5b70162
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
GO

0 comments on commit 5b70162

Please sign in to comment.