465e3da40350f30c2ef965b72531fb33666fa388,tests/test_extract.py,,test_named_entities,#Any#,164

Before Change




def test_named_entities(spacy_doc):
    result = [ent for ent in extract.named_entities(spacy_doc, drop_determiners=False)]
    assert all(ent.label_ for ent in result)
    assert all(ent[0].ent_type for ent in result)

After Change




def test_named_entities(spacy_doc):
    result = list(extract.named_entities(spacy_doc, drop_determiners=False))
    assert all(isinstance(span, SpacySpan) for span in result)
    assert all(span.label_ for span in result)
    assert all(span[0].ent_type for span in result)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: chartbeat-labs/textacy
Commit Name: 465e3da40350f30c2ef965b72531fb33666fa388
Time: 2019-03-20
Author: burtdewilde@gmail.com
File Name: tests/test_extract.py
Class Name:
Method Name: test_named_entities


Project Name: chartbeat-labs/textacy
Commit Name: 465e3da40350f30c2ef965b72531fb33666fa388
Time: 2019-03-20
Author: burtdewilde@gmail.com
File Name: tests/test_extract.py
Class Name:
Method Name: test_named_entities_min_freq


Project Name: chartbeat-labs/textacy
Commit Name: 465e3da40350f30c2ef965b72531fb33666fa388
Time: 2019-03-20
Author: burtdewilde@gmail.com
File Name: tests/test_extract.py
Class Name:
Method Name: test_named_entities_determiner