Opiniones sobre Clasifica texto en categorías con la API de Natural Language
Cargando…
No se encontraron resultados.

Aplica tus habilidades en la consola de Google Cloud

Opiniones sobre Clasifica texto en categorías con la API de Natural Language

66483 opiniones

Camilo P. · Se revisó hace más de 1 año

Deepnita M. · Se revisó hace más de 1 año

Bad formatted bigquery python script with some errors not working Script must be like: ``` # Import necessary libraries from google.cloud import storage, language, bigquery # Set up your GCS, NL, and BigQuery clients storage_client = storage.Client() nl_client = language.LanguageServiceClient() bq_client = bigquery.Client(project='qwiklabs-gcp-01-b8b997bbdb2b') # Define dataset and table dataset_ref = bq_client.dataset('news_classification_dataset') dataset = bigquery.Dataset(dataset_ref) table_ref = dataset.table('article_data') table = bq_client.get_table(table_ref) # Function to classify the text def classify_text(article): response = nl_client.classify_text( document=language.Document( content=article, type_=language.Document.Type.PLAIN_TEXT ) ) return response rows_for_bq = [] files = storage_client.bucket('qwiklabs-test-bucket-gsp063').list_blobs() print("Got article files from GCS, sending them to the NL API (this will take ~2 minutes)...") # Send files to the NL API and save the result to send to BigQuery for file in files: if file.name.endswith('txt'): article_text = file.download_as_bytes() nl_response = classify_text(article_text) if len(nl_response.categories) > 0: rows_for_bq.append((str(article_text), nl_response.categories[0].name, nl_response.categories[0].confidence)) print("Writing NL API article data to BigQuery...") # Write article text + category data to BQ errors = bq_client.insert_rows(table, rows_for_bq) assert errors == [] ```

OLEG M. · Se revisó hace más de 1 año

семен И. · Se revisó hace más de 1 año

Nickolay K. · Se revisó hace más de 1 año

Denys V. · Se revisó hace más de 1 año

Volodymyr P. · Se revisó hace más de 1 año

Дмитро М. · Se revisó hace más de 1 año

Vinicius G. · Se revisó hace más de 1 año

Данило Ч. · Se revisó hace más de 1 año

Satrajit S. · Se revisó hace más de 1 año

In task 6. The Python code is copied with a syntax error. Namely, the declaration of variables is not on a new line

Oleksandr K. · Se revisó hace más de 1 año

Ihor K. · Se revisó hace más de 1 año

Yuriy K. · Se revisó hace más de 1 año

muito bom

Paulo K999 G. · Se revisó hace más de 1 año

D P. · Se revisó hace más de 1 año

Pooja R. · Se revisó hace más de 1 año

Sheeraz C. · Se revisó hace más de 1 año

I was not able to finish it. When I run Pyton script I'he got an error "SyntaxError: invalid syntax" at line 5

Елена Л. · Se revisó hace más de 1 año

Mykhailo T. · Se revisó hace más de 1 año

Serhii K. · Se revisó hace más de 1 año

Mykola V. · Se revisó hace más de 1 año

Volodymyr M. · Se revisó hace más de 1 año

Pratik N. · Se revisó hace más de 1 año

Pavel D. · Se revisó hace más de 1 año

No garantizamos que las opiniones publicadas provengan de consumidores que hayan comprado o utilizado los productos. Google no verifica las opiniones.