Como usar a API Natural Language para classificar textos não estruturados avaliações

35477 avaliações

Sumit K. · Revisado há almost 6 years

Mohammad Abu N. · Revisado há almost 6 years

Syed Hasan A. · Revisado há almost 6 years

fasha f. · Revisado há almost 6 years

Fu Cheng S. · Revisado há almost 6 years

Félix D. · Revisado há almost 6 years

Manoj R. · Revisado há almost 6 years

TH L. · Revisado há almost 6 years

program only run with python version 2.7

mukesh s. · Revisado há almost 6 years

Omar S. · Revisado há almost 6 years

Mita A. · Revisado há almost 6 years

mukesh s. · Revisado há almost 6 years

python script has an error

Michael K. · Revisado há almost 6 years

Felipe S. · Revisado há almost 6 years

Kalyan K. · Revisado há almost 6 years

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. · Revisado há almost 6 years

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. · Revisado há almost 6 years

Michaella S. · Revisado há almost 6 years

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. · Revisado há almost 6 years

luis d. · Revisado há almost 6 years

Mohammed Azam M. · Revisado há almost 6 years

Massimo M. · Revisado há almost 6 years

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. · Revisado há almost 6 years

Vitthal M. · Revisado há almost 6 years

Sjoerd L. · Revisado há almost 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.