Skip to content

Commit 21d59e3

Browse files
tomdysontseaver
authored andcommitted
Fix usage docs example for entity extraction (googleapis#6193)
Entities no longer have `entity_type`, just `type`.
1 parent 0a3150e commit 21d59e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

language/docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ returns a :class:`~.language_v1.types.AnalyzeEntitiesResponse`.
9494
>>> for entity in response.entities:
9595
... print('=' * 20)
9696
... print(' name: {0}'.format(entity.name))
97-
... print(' type: {0}'.format(entity.entity_type))
97+
... print(' type: {0}'.format(entity.type))
9898
... print(' metadata: {0}'.format(entity.metadata))
9999
... print(' salience: {0}'.format(entity.salience))
100100
====================

0 commit comments

Comments
 (0)