关于“使用 Natural Language API 对文本进行分类”的评价

73295 条评价

Chandan M. · 已于 about 6 years前审核

Please, rename Speech API in the lab's text to Language API.

Vladislav K. · 已于 about 6 years前审核

yamen w. · 已于 about 6 years前审核

Nidhi p. · 已于 about 6 years前审核

Saurabh K. · 已于 about 6 years前审核

Fatima F. · 已于 about 6 years前审核

Eram N. · 已于 about 6 years前审核

Vaibhav S. · 已于 about 6 years前审核

Awesome

Shashwat S. · 已于 about 6 years前审核

Chirag B. · 已于 about 6 years前审核

BRAJ K. · 已于 about 6 years前审核

I lost 14 credits because of some problems on your side

Surya I. · 已于 about 6 years前审核

SWAPNANIL R. · 已于 about 6 years前审核

Mridul S. · 已于 about 6 years前审核

good

Shivansh S. · 已于 about 6 years前审核

Sharath M. · 已于 about 6 years前审核

Kritika Y. · 已于 about 6 years前审核

Bhogapurapu P. · 已于 about 6 years前审核

Easily solve problems

Kamran A. · 已于 about 6 years前审核

Nikunj A. · 已于 about 6 years前审核

failed to check progress on items 2 & 3, classify-text.py uses deprecated API, the minimal patch is the following: --- classify-text.py.ORIG 2020-10-27 15:55:22.808463793 +0000 +++ classify-text.py 2020-10-27 15:55:00.819818113 +0000 @@ -1,8 +1,8 @@ -from google.cloud import storage, language, bigquery +from google.cloud import storage, language_v1, bigquery # Set up our GCS, NL, and BigQuery clients storage_client = storage.Client() -nl_client = language.LanguageServiceClient() +nl_client = language_v1.LanguageServiceClient() # TODO: replace YOUR_PROJECT with your project name below bq_client = bigquery.Client(project='YOUR_PROJECT') @@ -14,9 +14,9 @@ # Send article text to the NL API's classifyText method def classify_text(article): response = nl_client.classify_text( - document=language.types.Document( + document=language_v1.Document( content=article, - type=language.enums.Document.Type.PLAIN_TEXT + type_=language_v1.Document.Type.PLAIN_TEXT ) ) return response

Vladislav K. · 已于 about 6 years前审核

ABINASH P. · 已于 about 6 years前审核

Akundi P. · 已于 about 6 years前审核

Suryaveer R. · 已于 about 6 years前审核

Tejaswini M. · 已于 about 6 years前审核

我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。