Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在AWS Lex中检查用户的情绪_Python_Amazon Web Services_Aws Lambda_Amazon Lex - Fatal编程技术网

Python 在AWS Lex中检查用户的情绪

Python 在AWS Lex中检查用户的情绪,python,amazon-web-services,aws-lambda,amazon-lex,Python,Amazon Web Services,Aws Lambda,Amazon Lex,我们如何通过检查用户所说的话来检查AWS Lex中的用户情绪?Lex或其他AWS服务中是否有内置功能?我能马上想到的最简单的答案是使用诸如TextBlob之类的NLP库。您可以阅读整个文档。它非常简单,易于使用。文档也很好 from textblob import TextBlob user_input = "What the user had said goes here" blob = textBlob(user_input) print(blob.sentiment) #this give

我们如何通过检查用户所说的话来检查AWS Lex中的用户情绪?Lex或其他AWS服务中是否有内置功能?

我能马上想到的最简单的答案是使用诸如TextBlob之类的NLP库。您可以阅读整个文档。它非常简单,易于使用。文档也很好

from textblob import TextBlob
user_input = "What the user had said goes here"
blob = textBlob(user_input)
print(blob.sentiment) #this gives both subjectivity and polarity.

我能马上想到的最简单的答案是使用一个NLP库,比如TextBlob。您可以阅读整个文档。它非常简单,易于使用。文档也很好

from textblob import TextBlob
user_input = "What the user had said goes here"
blob = textBlob(user_input)
print(blob.sentiment) #this gives both subjectivity and polarity.

您还可以使用来自AWS市场的解决方案,该解决方案适合于少量分析。

您也可以使用来自AWS市场的解决方案,该解决方案适合于少量分析。

您应该看看来自AWS的名为“”的新服务。这应该满足您的需求。

您应该查看AWS中名为“”的新服务。这应该可以满足您的要求。

不知道为什么我在安装TextBlob时出现以下错误:没有名为_SQLITE3的模块您是如何安装它的?我建议使用easy_install不知道为什么在安装TextBlob时出现以下错误:没有名为_Sqlite3的模块您是如何尝试安装它的?我建议使用easy_安装