def test_issue2782(text, lang_cls):
    """Check that like_num handles + and - before number."""
    nlp = lang_cls()
    doc = nlp(text)
    assert len(doc) == 1
    assert doc[0].like_num
Check that like_num handles + and - before number.
spacy/tests/doc/test_doc_api.py