Skip to content
Snippets Groups Projects
Commit f56e8405 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

In internal_id_rescore(): sort out possible bug.

parent 1dce067d
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,8 @@ sub internal_id_rescore {
my $ambiguous = 0;
foreach my $e (@entries) {
if ( $e->target == $source and $e->score == $entries[0] ) {
if ( $e->target == $source and $e->score == $entries[0]->score() )
{
$ambiguous = 1;
last;
}
......@@ -201,7 +202,8 @@ sub internal_id_rescore {
# now penalise those where source id != target id and score == best
# score
foreach my $e (@entries) {
if ( $e->target != $source and $e->score == $entries[0] ) {
if ( $e->target != $source and $e->score == $entries[0]->score() )
{
# PENALTY: This stable ID is not any longer on the same object.
$matrix->set_score( $source, $e->target(), 0.8*$e->score() );
$i++;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment