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
This error is produced:
totalMatchingCount[order] += bestMatchingCount[order]
UnboundLocalError: local variable 'bestMatchingCount' referenced before assignment
when the first sentence scores 0. Therefore I believe the fix is that all these variables inside the if statement should be initialised to defaultdict(float) in case of this.
The text was updated successfully, but these errors were encountered:
Hi there,
This error is produced:
totalMatchingCount[order] += bestMatchingCount[order]
UnboundLocalError: local variable 'bestMatchingCount' referenced before assignment
chrF/chrF++.py
Line 157 in 6d3c384
when the first sentence scores 0. Therefore I believe the fix is that all these variables inside the if statement should be initialised to defaultdict(float) in case of this.
The text was updated successfully, but these errors were encountered: