Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loosening salience assumptions in language system test. #2331

Merged
merged 1 commit into from
Sep 16, 2016

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Sep 16, 2016

Fixes #2274.

/cc @jgeewax

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 16, 2016
Copy link
Contributor

@daspecster daspecster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending travis.

@@ -73,25 +73,23 @@ def _check_analyze_entities_result(self, entities):
# Verify entity 1.
self.assertEqual(entity1.name, self.NAME1)
self.assertEqual(entity1.entity_type, EntityType.PERSON)
# NOTE: As of Sept. 8, 2016, entity1.salience == 0.81992269
self.assertTrue(0.6 < entity1.salience < 1.0)
self.assertGreater(entity1.salience, 0.0)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@dhermes dhermes merged commit 932a0ce into googleapis:master Sep 16, 2016
@dhermes dhermes deleted the fix-2274 branch September 16, 2016 17:37
@dhermes dhermes mentioned this pull request Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants