You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to make you aware that at somepoint in the last 2-3 weeks, something related to the check() method in CheckerBase changed (?) and now check() requires is_joint to be set.
Previously, the following code would run fine:
batch_claims = [[['A woman', 'lingered before', 'the gate of a school'],
['A woman', 'clung to', 'her umbrella and mobile phone'],
... ]]]
batch_reference= ["A mysterious woman lingered before the school gates. ..."]
checking_results = checker.check(
batch_claims=batch_claims,
batch_references=batch_reference,
max_reference_segment_length=0
)
Now it returns an error: TypeError: replace() argument 2 must be str, not None
The solution is to set is_joint
res = checker.check(
batch_claims=batch_claims ,
batch_references=[batch_reference],
max_reference_segment_length=0,
is_joint=False
)
Perhaps you could update refchecker_usages.ipynb so others who are getting started with RefChecker, like me, don't run into the same issue.
The text was updated successfully, but these errors were encountered:
I wanted to make you aware that at somepoint in the last 2-3 weeks, something related to the
check()
method inCheckerBase
changed (?) and nowcheck()
requiresis_joint
to be set.Previously, the following code would run fine:
Now it returns an error:
TypeError: replace() argument 2 must be str, not None
The solution is to set
is_joint
Perhaps you could update refchecker_usages.ipynb so others who are getting started with RefChecker, like me, don't run into the same issue.
The text was updated successfully, but these errors were encountered: