Skip Menu |
 

This queue is for tickets about the WordNet-Similarity CPAN distribution.

Report information
The Basics
Id: 23911
Status: resolved
Estimated: 24 hours (1440 min)
Priority: 0/
Queue: WordNet-Similarity

People
Owner: SID [...] cpan.org
Requestors: sushant [...] stanford.edu
Cc: tpederse [...] d.umn.edu
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.03
Fixed in: 1.04



Subject: vector_pairs.pm
Date: Wed, 13 Dec 2006 03:00:00 -0800
To: bug-WordNet-Similarity [...] rt.cpan.org
From: Sushant <sushant [...] stanford.edu>
Download (untitled) / with headers
text/plain 496b
hi, i think i found a bug. in getRelatedness() in vector_pairs.pm there is a for loop to iterate through all the weights corresponding to the different relations obtained from the relation file. inside that for loop, at the very end, variable i is incremented. this means each run through the loop, i is incremented twice, and hence only the evenly indexed relations are calculated. please let me know if this is indeed a bug or if i am misinterpreting something. thanks, sushant
CC: sushant [...] stanford.edu, tpederse [...] d.umn.edu
Subject: Re: [rt.cpan.org #23911] vector_pairs.pm
Date: Wed, 13 Dec 2006 04:15:53 -0700 (MST)
To: Sushant via RT <bug-WordNet-Similarity [...] rt.cpan.org>
From: Siddharth Patwardhan <sidd [...] cs.utah.edu>
Sushant, You're right, it is a bug indeed. I'll put out a new release with the fix today. Thanks for catching and reporting this! -- Sid. On Wed, 13 Dec 2006, Sushant via RT wrote: Show quoted text
> > Wed Dec 13 06:02:27 2006: Request 23911 was acted upon. > Transaction: Ticket created by sushant@stanford.edu > Queue: WordNet-Similarity > Subject: vector_pairs.pm > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: sushant@stanford.edu > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=23911 > > > > hi, > i think i found a bug. in getRelatedness() in vector_pairs.pm there is a > for loop to iterate through all the weights corresponding to the different > relations obtained from the relation file. inside that for loop, at the > very end, variable i is incremented. this means each run through the > loop, i is incremented twice, and hence only the evenly indexed relations > are calculated. please let me know if this is indeed a bug or if i am > misinterpreting something. > thanks, > sushant > >
I've put out a fixed release (v1.04) on CPAN and SourceForge.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.