MCPcopy
hub / github.com/explosion/spaCy / sented_doc

Function sented_doc

spacy/tests/test_scorer.py:85–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84@pytest.fixture
85def sented_doc():
86 text = "One sentence. Two sentences. Three sentences."
87 nlp = English()
88 doc = nlp(text)
89 for i in range(len(doc)):
90 if i % 3 == 0:
91 doc[i].is_sent_start = True
92 else:
93 doc[i].is_sent_start = False
94 return doc
95
96
97def test_tokenization(sented_doc):

Callers

nothing calls this directly

Calls 2

EnglishClass · 0.90
nlpFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…