From fde9a22ec27a06d581934e669965353d93537a68 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 8 Nov 2015 13:57:15 +0100 Subject: [PATCH] * Add new test for ner --- spacy/tests/parser/test_ner.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spacy/tests/parser/test_ner.py b/spacy/tests/parser/test_ner.py index eb1d99bec..721d9b544 100644 --- a/spacy/tests/parser/test_ner.py +++ b/spacy/tests/parser/test_ner.py @@ -10,3 +10,9 @@ def test_simple_types(EN): assert ents[1].start == 4 assert ents[1].end == 6 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.')