in reply to Re^2: Tag protein names in sentences
in thread Tag protein names in sentences
The other part of the code that I don't understand is "@best = ($parent->{_name_}, $wIndex)" as inwhile (@parts) { my $part = shift @parts; $parent = $parent->{$part} ||= {}; next if @parts; $parent->{_name_} = $protein; }
Thanks for the explaination.while ($wIndex < @words && exists $parent->{$words[$wIndex]}) { @best = ($parent->{_name_}, $wIndex) if exists $parent->{_name +_}; $parent = $parent->{$words[$wIndex++]}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tag protein names in sentences
by GrandFather (Saint) on Feb 18, 2010 at 02:58 UTC | |
by sinlam (Novice) on Feb 18, 2010 at 19:34 UTC | |
by GrandFather (Saint) on Feb 18, 2010 at 19:53 UTC |