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 33ec7d2 commit f48affdCopy full SHA for f48affd
snorkel/lf_helpers.py
@@ -55,7 +55,7 @@ def is_inverted(c):
55
"""Returns True if the ordering of the candidates in the sentence is inverted."""
56
if len(c.get_arguments()) != 2:
57
raise ValueError("Only applicable to binary Candidates")
58
- return span0.get_word_start() > span1.get_word_start()
+ return c[0].get_word_start() > c[1].get_word_start()
59
60
61
def get_between_tokens(c, attrib='words', n_max=1, case_sensitive=False):
0 commit comments