Last active
September 15, 2019 00:27
-
-
Save LetticiaNicoli/50554c8011d4803dfea24620330d2b84 to your computer and use it in GitHub Desktop.
Revisions
-
LetticiaNicoli revised this gist
Sep 15, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,5 +2,5 @@ from autokeras_pretrained.text_classifier import SentimentAnalysis sentiment_cls = SentimentAnalysis() polarity = sentiment_cls.predict("Today I forgot my wallet.") print("Polarity of the input sentence is (sentiment is positive if polarity > 0.5) : ", polarity) -
LetticiaNicoli created this gist
Sep 15, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #pip3 install autokeras.pretrained from autokeras_pretrained.text_classifier import SentimentAnalysis sentiment_cls = SentimentAnalysis() polarity = sentiment_cls.predict("Today i forgot my vallet") print("Polarity of the input sentence is (sentiment is positive if polarity > 0.5) : ", polarity)