コード例 #1
0
def test_make_doc_from_text_chunks():
    text = "Burton forgot to add tests for this function."
    for lang in ("en", cache.load_spacy("en")):
        spacy_doc = utils.make_doc_from_text_chunks(text, lang)
        assert isinstance(spacy_doc, SpacyDoc)
        assert spacy_doc.text == text
コード例 #2
0
def test_make_doc_from_text_chunks():
    text = "Burton forgot to add tests for this function."
    for lang in ("en_core_web_sm", load_spacy_lang("en_core_web_sm")):
        spacy_doc = utils.make_doc_from_text_chunks(text, lang)
        assert isinstance(spacy_doc, Doc)
        assert spacy_doc.text == text