@@ -0,0 +1,557 @@
+from __future__ import unicode_literals%0Afrom ...tokenizer import Tokenizer%0Afrom ...symbols import ORTH, LEMMA, POS%0Afrom ...lang.en import English%0A%0Adef test_issue1250_cached_special_cases():%0A    nlp = English()%0A    nlp.tokenizer.add_special_case(u'reimbur', %5B%7BORTH: u'reimbur', LEMMA: u'reimburse', POS: u'VERB'%7D%5D)%0A%0A    lemmas = %5Bw.lemma_ for w in nlp(u'reimbur, reimbur...')%5D%0A    assert lemmas == %5B'reimburse', ',', 'reimburse', '...'%5D%0A    lemmas = %5Bw.lemma_ for w in nlp(u'reimbur, reimbur...')%5D%0A    assert lemmas == %5B'reimburse', ',', 'reimburse', '...'%5D%0A

Add test for #1250: Tokenizer cache clobbered special-case attrs