We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 889de55 commit f1fbaaaCopy full SHA for f1fbaaa
stanza/pipeline/coref_processor.py
@@ -109,7 +109,7 @@ def process(self, document):
109
# manipulating the spans, since we will expect it to
110
# be this way for multiple usages of the spans
111
sent_id = sent_ids[span[0]]
112
- if sent_ids[span[1]] != sent_id:
+ if sent_ids[span[1]-1] != sent_id:
113
raise ValueError("The coref model predicted a span that crossed two sentences! Please send this example to us on our github")
114
115
# treat the longest span as the representative
0 commit comments