Don't use is_sentenced

This commit is contained in:
Paul O'Leary McCann 2021-06-12 19:29:27 +09:00
parent 67d9ebc922
commit 7efbc721a1

View File

@ -111,7 +111,7 @@ def get_predicted_clusters(
def get_sentence_map(doc: Doc):
"""For the given span, return a list of sentence indexes."""
if doc.is_sentenced:
if doc.has_annotation("SENT_START"):
si = 0
out = []
for sent in doc.sents: