in reply to Advice on make my programme faster
before the for loop (Update: suaveant already mentioned this, sorry).my $obj = $Measure->new($wn);
Check your word list. Does it contain duplicated lines (you should never have to use Memoize)? Try this to spot errors:
sub similarity { my ( $w1, $w2 ) = @_; warn "'$w1' vs '$w2'"; return $obj->getRelatedness($w1, $w2); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Advice on make my programme faster
by smilly (Novice) on Feb 11, 2008 at 21:27 UTC |