关于“Analyze Speech & Language with Google APIs: Challenge Lab”的评价
11705 条评价
Manish Kumar Yadav G. · 已于 17 days前审核
Abhijit B. · 已于 17 days前审核
Teri B. · 已于 17 days前审核
Chayan S. · 已于 17 days前审核
Gourab S. · 已于 17 days前审核
Deep S. · 已于 17 days前审核
Hari y. · 已于 17 days前审核
Kamlesh M. · 已于 17 days前审核
Mesh G. · 已于 17 days前审核
Nirmal K. · 已于 17 days前审核
Neelabh M. · 已于 17 days前审核
Sruthi B. · 已于 17 days前审核
jhg
Biranchi B. · 已于 17 days前审核
Smiriti K. · 已于 17 days前审核
Rahul j. · 已于 17 days前审核
sagar n. · 已于 17 days前审核
Roopa S. · 已于 17 days前审核
Thusitha P. · 已于 17 days前审核
Rudranil C. · 已于 18 days前审核
I was able to get the sentiment through python code. Not sure why it was not recognized. I have made the following change to code: def analyze(movie_review_filename): client = language_v1.LanguageServiceClient() file = open(movie_review_filename, "r") fcontent = file.read() document = language_v1.Document( content=fcontent, type_=language_v1.Document.Type.PLAIN_TEXT ) response = client.analyze_sentiment(request={'document': document}) sentiment = response.document_sentiment print(f"Text: {fcontent}") print(f"Sentiment: {sentiment.score}, {sentiment.magnitude}") Output for Sentiment: Sentiment: 0.20000000298023224, 4.599999904632568
Augustine P. · 已于 18 days前审核
Aman C. · 已于 18 days前审核
Kunal P. · 已于 18 days前审核
Ariel R. · 已于 18 days前审核
bubg p. · 已于 18 days前审核
urmi p. · 已于 18 days前审核
我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。