Natural Language API を使用してテキストをカテゴリに分類する のレビュー
66498 件のレビュー
ear brenno_ · 1年以上前にレビュー済み
Galayko Vitalik · 1年以上前にレビュー済み
santos Matheus · 1年以上前にレビュー済み
Мірошниченко Ігор · 1年以上前にレビュー済み
Diduk Yurii · 1年以上前にレビュー済み
Socao Jessa Mae · 1年以上前にレビュー済み
Task 6 python script is not formated
U Vitaly · 1年以上前にレビュー済み
Kozlov Ihor · 1年以上前にレビュー済み
Rak Roman · 1年以上前にレビュー済み
Vysochanska Iryna · 1年以上前にレビュー済み
providnui providnui · 1年以上前にレビュー済み
Teslenko Oleh · 1年以上前にレビュー済み
very nice.
Gabriel Arcanjo · 1年以上前にレビュー済み
I think, you know, that the second part, related to classify-text.py does not work need to install pip install google.cloud for python pip install --user google-cloud-bigquery==2.34.4 "shapely<2" google-cloud-storage google-cloud-language fix errors in classify-text.py insert Project ID but thanks anyway for the interesting challenge
Max BuYn · 1年以上前にレビュー済み
Gupta Kritika · 1年以上前にレビュー済み
Pinto Camilo · 1年以上前にレビュー済み
Mandhata Deepnita · 1年以上前にレビュー済み
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 == [] ```
MANDRYCHENKO OLEG · 1年以上前にレビュー済み
Иванов семен · 1年以上前にレビュー済み
Kravtsov Nickolay · 1年以上前にレビュー済み
Vitkovskyi Denys · 1年以上前にレビュー済み
Prokopiv Volodymyr · 1年以上前にレビュー済み
Магалюк Дмитро · 1年以上前にレビュー済み
Gato Vinicius · 1年以上前にレビュー済み
Чернявський Данило · 1年以上前にレビュー済み
公開されたレビューが、製品を購入または使用した人によるものであることは保証されません。Google はこれらのレビューの検証を行っていません。