-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: languageIssues related to the Cloud Natural Language API API.Issues related to the Cloud Natural Language API API.backendpriority: p0Highest priority. Critical issue. P0 implies highest priority.Highest priority. Critical issue. P0 implies highest priority.testing
Description
See:
- https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/2105
- https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/2108
- https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/2110
- https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/2111
def _check_analyze_entities_result(self, entities):
from google.cloud.language.entity import EntityType
self.assertEqual(len(entities), 3)
entity1, entity2, entity3 = entities
# Verify entity 1.
self.assertEqual(entity1.name, self.NAME1)
self.assertEqual(entity1.entity_type, EntityType.PERSON)
self.assertGreater(entity1.salience, 0.0)
# Other mentions may occur, e.g. "painter".
self.assertIn(entity1.name, [str(i) for i in entity1.mentions])
> self.assertEqual(entity1.metadata['wikipedia_url'],
'http://en.wikipedia.org/wiki/Caravaggio')
E KeyError: 'wikipedia_url'
Metadata
Metadata
Assignees
Labels
api: languageIssues related to the Cloud Natural Language API API.Issues related to the Cloud Natural Language API API.backendpriority: p0Highest priority. Critical issue. P0 implies highest priority.Highest priority. Critical issue. P0 implies highest priority.testing