Skip to content

Commit f7bb437

Browse files
committed
patch small errors
1 parent e22685f commit f7bb437

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stanza/pipeline/coref_processor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def process(self, document):
174174

175175
# if we ended up with no best span, then our "representative text"
176176
# is just underscore
177-
if best_span:
177+
if best_span is not None:
178178
representative = mentions[best_span]
179179
representative_text = extract_text(document, representative.sentence, representative.start_word, representative.end_word)
180180
else:
@@ -205,7 +205,6 @@ def _handle_zero_anaphora(self, document, results, sent_ids, word_pos):
205205
cluster_word_ids.extend(cluster)
206206

207207
# Find indices where zero_scores > 0
208-
print(zero_scores)
209208
zero_indices = (zero_scores > 0.0).nonzero()
210209

211210
# this dict maps (cluster_id, word_id) to (cluster_id, start, end)

0 commit comments

Comments
 (0)