Update pretrainedmodel_sentiment_analysis.sql

This commit is contained in:
Umachandar Jayachandran
2017-10-30 22:06:36 -07:00
committed by GitHub
parent 0d8ee70374
commit 5b701628af
@@ -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
GO