7c3bebd23bbf2ac266aa543d73b959e5bcb77068,language/cloud-client/v1beta2/snippets.py,,entities_file,#Any#,91
Before Change
def entities_file(gcs_uri):
Detects entities in the file located in Google Cloud Storage.
language_client = language.Client(api_version="v1beta2")
// Instantiates a plain text document.
document = language_client.document_from_gcs_url(gcs_uri)
// Detects sentiment in the document. You can also analyze HTML with:
// document.doc_type == language.Document.HTML
entities = document.analyze_entities().entities
After Change
def entities_file(gcs_uri):
Detects entities in the file located in Google Cloud Storage.
client = language_v1beta2.LanguageServiceClient()
// Instantiates a plain text document.
document = types.Document(
gcs_content_uri=gcs_uri,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 7c3bebd23bbf2ac266aa543d73b959e5bcb77068
Time: 2017-07-28
Author: dizcology@hotmail.com
File Name: language/cloud-client/v1beta2/snippets.py
Class Name:
Method Name: entities_file
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 7c3bebd23bbf2ac266aa543d73b959e5bcb77068
Time: 2017-07-28
Author: dizcology@hotmail.com
File Name: language/cloud-client/v1beta2/snippets.py
Class Name:
Method Name: sentiment_file
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 7c3bebd23bbf2ac266aa543d73b959e5bcb77068
Time: 2017-07-28
Author: dizcology@hotmail.com
File Name: language/cloud-client/v1beta2/snippets.py
Class Name:
Method Name: syntax_file