Classificar texto em categorias com a API Natural Language avaliações
73301 avaliações
Nikunj A. · Revisado há 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. · Revisado há about 6 years
ABINASH P. · Revisado há about 6 years
Akundi P. · Revisado há about 6 years
Suryaveer R. · Revisado há about 6 years
Tejaswini M. · Revisado há about 6 years
Muhammad F. · Revisado há about 6 years
very good
Sriparna S. · Revisado há about 6 years
VIJAYANT P. · Revisado há about 6 years
shashank m. · Revisado há about 6 years
Wamika J. · Revisado há about 6 years
Srivari C. · Revisado há about 6 years
Viren M. · Revisado há about 6 years
Shubham J. · Revisado há about 6 years
Satisfied.
Satya Swaroop P. · Revisado há about 6 years
Classify Text into Categories with the Natural Language API was amazing
Pratik P. · Revisado há about 6 years
kritika r. · Revisado há about 6 years
stuck with hung cloud shell, after shell restart with progress check
Vladislav K. · Revisado há about 6 years
Prasanjit M. · Revisado há about 6 years
Avinash Naidu M. · Revisado há about 6 years
Akhil S. · Revisado há about 6 years
Joel J. · Revisado há about 6 years
Ming Qi L. · Revisado há about 6 years
Swagato P. · Revisado há about 6 years
Paritosh S. · Revisado há about 6 years
Não garantimos que as avaliações publicadas sejam de consumidores que compraram ou usaram os produtos. As avaliações não são verificadas pelo Google.