Skip to content

Commit f48affd

Browse files
committed
Fixed minor bug
1 parent 33ec7d2 commit f48affd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snorkel/lf_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def is_inverted(c):
5555
"""Returns True if the ordering of the candidates in the sentence is inverted."""
5656
if len(c.get_arguments()) != 2:
5757
raise ValueError("Only applicable to binary Candidates")
58-
return span0.get_word_start() > span1.get_word_start()
58+
return c[0].get_word_start() > c[1].get_word_start()
5959

6060

6161
def get_between_tokens(c, attrib='words', n_max=1, case_sensitive=False):

0 commit comments

Comments
 (0)