mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Update pretrainedmodel_sentiment_analysis.sql
This commit is contained in:
+7
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user