Skip to content

Commit

Permalink
Update parse tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dougppaz committed Aug 10, 2018
1 parent ff516e8 commit 9787731
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bothub_nlp/core/tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,5 @@ def test_parse(self):
response = parse_text(self.update, example.get('text'))

entities = response.get('entities')
print('entities', len(entities))
for entity in entities:
print(entity.get('value'), entity.get('entity'))

labels_as_entity = response.get('labels_as_entity', [])
print('labels_as_entity', len(labels_as_entity))
for label_as_entity in labels_as_entity:
print(label_as_entity.get('value'), label_as_entity.get('entity'))
self.assertEqual(len(entities), len(labels_as_entity))

0 comments on commit 9787731

Please sign in to comment.