Skip to content

Commit

Permalink
Fix usage docs example for entity extraction (#6193)
Browse files Browse the repository at this point in the history
Entities no longer have `entity_type`, just `type`.
  • Loading branch information
tomdyson authored and tseaver committed Oct 11, 2018
1 parent 6637f9e commit 1972ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/google-cloud-language/docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ returns a :class:`~.language_v1.types.AnalyzeEntitiesResponse`.
>>> for entity in response.entities:
... print('=' * 20)
... print(' name: {0}'.format(entity.name))
... print(' type: {0}'.format(entity.entity_type))
... print(' type: {0}'.format(entity.type))
... print(' metadata: {0}'.format(entity.metadata))
... print(' salience: {0}'.format(entity.salience))
====================
Expand Down

0 comments on commit 1972ee1

Please sign in to comment.