Using the Natural Language API to classify unstructured text Reviews

34920 reviews

program only run with python version 2.7

mukesh s. · Reviewed over 5 years ago

Omar S. · Reviewed over 5 years ago

Mita A. · Reviewed over 5 years ago

mukesh s. · Reviewed over 5 years ago

python script has an error

Michael K. · Reviewed over 5 years ago

Felipe S. · Reviewed over 5 years ago

Kalyan K. · Reviewed over 5 years ago

Python script needs refreshment. Tried rewriting the code to match language_v1 but still errors occured. ValueError: Protocol message Document has no "type" field.

Radoslaw R. · Reviewed over 5 years ago

Error in the classify-text.py script: 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'

Eberto B. · Reviewed over 5 years ago

Michaella S. · Reviewed over 5 years ago

I was getting following error; 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'

Iftikhar U. · Reviewed over 5 years ago

luis d. · Reviewed over 5 years ago

Mohammed Azam M. · Reviewed over 5 years ago

Massimo M. · Reviewed over 5 years ago

This didnt work for me: python3 classify-text.py An error was produced: ImportError: cannot import name 'enums' from 'google.cloud.language' (/usr/local/lib/python3.7/dist-packages/google/cloud/language/__init__.py) I used this instead: python classify-text.py

Ngo S. · Reviewed over 5 years ago

Vitthal M. · Reviewed over 5 years ago

Sjoerd L. · Reviewed over 5 years ago

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'

Michał M. · Reviewed over 5 years ago

Dima Y. · Reviewed over 5 years ago

Jackey S. · Reviewed over 5 years ago

Yogesh K. · Reviewed over 5 years ago

Peerapat C. · Reviewed over 5 years ago

Lisa N. · Reviewed over 5 years ago

Satheish K. · Reviewed over 5 years ago

Lyndon A. · Reviewed over 5 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.