mirror of
https://github.com/explosion/spaCy.git
synced 2025-09-18 18:12:45 +03:00
Don't use is_sentenced
This commit is contained in:
parent
67d9ebc922
commit
7efbc721a1
|
@ -111,7 +111,7 @@ def get_predicted_clusters(
|
||||||
|
|
||||||
def get_sentence_map(doc: Doc):
|
def get_sentence_map(doc: Doc):
|
||||||
"""For the given span, return a list of sentence indexes."""
|
"""For the given span, return a list of sentence indexes."""
|
||||||
if doc.is_sentenced:
|
if doc.has_annotation("SENT_START"):
|
||||||
si = 0
|
si = 0
|
||||||
out = []
|
out = []
|
||||||
for sent in doc.sents:
|
for sent in doc.sents:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user