Using the Natural Language API to classify unstructured text Reviews

35478 reviews

Mihaela O. · Reviewed almost 6 years ago

János T. · Reviewed almost 6 years ago

Walter O. · Reviewed almost 6 years ago

Thorsten R. · Reviewed almost 6 years ago

András D. · Reviewed almost 6 years ago

OSCAR S. · Reviewed almost 6 years ago

Dimitris P. · Reviewed almost 6 years ago

student_03_d583e6458b56@cloudshell:~ (qwiklabs-gcp-03-f826e762a620)$ python3 classify-text.py Got article files from GCS, sending them to the NL API (this will take ~2 minutes)... Traceback (most recent call last): File "classify-text.py", line 32, in <module> nl_response = classify_text(article_text) File "classify-text.py", line 17, in classify_text document=language.types.Document( AttributeError: module 'google.cloud.language' has no attribute 'types'

Eduardo V. · Reviewed almost 6 years ago

Getting error: Got article files from GCS, sending them to the NL API (this will take ~2 minutes)... Traceback (most recent call last): File "classify-text.py", line 32, in <module> nl_response = classify_text(article_text) File "classify-text.py", line 17, in classify_text document=language.types.Document( AttributeError: module 'google.cloud.language' has no attribute 'types'

Krishna S. · Reviewed almost 6 years ago

issue in script, had to fix manually

Eric B. · Reviewed almost 6 years ago

Huang J. · Reviewed almost 6 years ago

Ankur A. · Reviewed almost 6 years ago

Lars B. · Reviewed almost 6 years ago

good

chdsfdf s. · Reviewed almost 6 years ago

Oscar V. · Reviewed almost 6 years ago

LTI S. · Reviewed almost 6 years ago

Abhishek N. · Reviewed almost 6 years ago

Python code error: AttributeError: module 'google.cloud.language' has no attribute 'types'

Peter H. · Reviewed almost 6 years ago

Sergey M. · Reviewed almost 6 years ago

Ramon A. · Reviewed almost 6 years ago

Wanda K. · Reviewed almost 6 years ago

good

เจตรินทร์ ข. · Reviewed almost 6 years ago

Python code was invalid

Pierre B. · Reviewed almost 6 years ago

Khamchand S. · Reviewed almost 6 years ago

This was an interesting lab, but unfortunately, running classify-text.py with python3 results in the following error: student_03_0124b10b6b17@cloudshell:~ (qwiklabs-gcp-03-75c6632da366)$ python3 classify-text.py Got article files from GCS, sending them to the NL API (this will take ~2 minutes)... Traceback (most recent call last): File "classify-text.py", line 32, in <module> nl_response = classify_text(article_text) File "classify-text.py", line 17, in classify_text document=language.types.Document( AttributeError: module 'google.cloud.language' has no attribute 'types' python2 worked fine though.

Calvin Y. · Reviewed almost 6 years ago

We do not ensure the published reviews originate from consumers who have purchased or used the products. Reviews are not verified by Google.