Skip to content

Commit b04cd1a

Browse files
incremented the version and also fixed the bug that made offsets go off
track when there is a white space character separating blocks instead of just a newline
1 parent 32910f5 commit b04cd1a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/CorScorer.pm

+9-1
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,17 @@ use Data::Dumper;
3333
use Math::Combinatorics;
3434
use Cwd;
3535

36-
our $VERSION = '8.0';
36+
our $VERSION = '8.01';
3737
print "version: " . $VERSION . " " . Cwd::realpath(__FILE__) . "\n";
3838

3939
##
40+
# 8.01 fixed a bug that crashed the the BLANC scoring when duplicate
41+
# (potentially singleton) mentions were present in the
42+
# response. as part of the fix, wee will allow a maximum of 10
43+
# duplicate mentions in response, but if there are more, than it
44+
# is a sign of a systematic error/manipulation and we will refuse
45+
# to score that run.
46+
4047
# 8.0 added code to compute the BLANC metric (generalized for both gold
4148
# and system mentions (Luo et al., 2014)
4249
#
@@ -226,6 +233,7 @@ sub GetCoreference {
226233
my @sentId;
227234
while (my $l = <F>) {
228235
chomp($l);
236+
$l =~ s/^\s+$//;
229237
next if ($l eq '');
230238
if ($l =~ /\#\s*end document/) {
231239
foreach my $h (@half) {

0 commit comments

Comments
 (0)