mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
* Add new test for ner
This commit is contained in:
parent
e92371bb54
commit
fde9a22ec2
|
@ -10,3 +10,9 @@ def test_simple_types(EN):
|
||||||
assert ents[1].start == 4
|
assert ents[1].start == 4
|
||||||
assert ents[1].end == 6
|
assert ents[1].end == 6
|
||||||
assert ents[1].label_ == 'GPE'
|
assert ents[1].label_ == 'GPE'
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.models
|
||||||
|
def test_consistency_bug(EN):
|
||||||
|
'''Test an arbitrary sequence-consistency bug encountered during speed test'''
|
||||||
|
tokens = EN(u'Where rap essentially went mainstream, illustrated by seminal Public Enemy, Beastie Boys and L.L. Cool J. tracks.')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user