| line |
true |
false |
branch |
|
220
|
0 |
0 |
if ($key eq 'wordnet') { } |
|
|
0 |
0 |
elsif ($key eq 'wntools') { } |
|
|
0 |
0 |
elsif ($key eq 'measure') { } |
|
|
0 |
0 |
elsif ($key eq 'config') { } |
|
|
0 |
0 |
elsif ($key eq 'stoplist') { } |
|
|
0 |
0 |
elsif ($key eq 'pairScore') { } |
|
|
0 |
0 |
elsif ($key eq 'contextScore') { } |
|
|
0 |
0 |
elsif ($key eq 'nocompoundify') { } |
|
|
0 |
0 |
elsif ($key eq 'usemono') { } |
|
|
0 |
0 |
elsif ($key eq 'backoff') { } |
|
|
0 |
0 |
elsif ($key eq 'trace') { } |
|
|
0 |
0 |
elsif ($key eq 'outfile') { } |
|
|
0 |
0 |
elsif ($key eq 'forcepos') { } |
|
|
0 |
0 |
elsif ($key eq 'fixed') { } |
|
|
0 |
0 |
elsif ($key eq 'wnformat') { } |
|
253
|
0 |
0 |
defined $trace ? : |
|
272
|
0 |
0 |
unless (ref $qd) |
|
276
|
0 |
0 |
unless (ref $wnt) |
|
280
|
0 |
0 |
unless ($measure) |
|
287
|
0 |
0 |
if (defined $trace) { } |
|
300
|
0 |
0 |
if (defined $measure_config) { } |
|
309
|
0 |
0 |
if ($errCode) |
|
314
|
0 |
0 |
if ($trace{$self}{'level'} & 32) { } |
|
328
|
0 |
0 |
if defined $stoplist |
|
336
|
0 |
0 |
if ($outfile and -e $outfile) |
|
340
|
0 |
0 |
if (defined $forcepos) { } |
|
347
|
0 |
0 |
if (defined $nocompoundify) { } |
|
354
|
0 |
0 |
if (defined $usemono) { } |
|
361
|
0 |
0 |
if (defined $backoff) { } |
|
511
|
0 |
0 |
if ($key eq 'window') { } |
|
|
0 |
0 |
elsif ($key eq 'tagged') { } |
|
|
0 |
0 |
elsif ($key eq 'context') { } |
|
|
0 |
0 |
elsif ($key eq 'scheme') { } |
|
534
|
0 |
0 |
if ($tagged or $wnformat{$self}) |
|
536
|
0 |
0 |
if (not $word =~ /\#/) { } |
|
|
0 |
0 |
elsif ($word =~ /^#/) { } |
|
|
0 |
0 |
elsif (not $word =~ /\#[nvar]$/ || $word =~ /\#o\b/ || $word =~ /\#CL\b/ || $word =~ /\#IT\b/) { } |
|
550
|
0 |
0 |
if ($scheme eq 'sense1') { } |
|
|
0 |
0 |
elsif ($scheme eq 'random') { } |
|
|
0 |
0 |
elsif ($scheme eq 'normal' or $scheme eq 'fixed') { } |
|
557
|
0 |
0 |
if $scheme eq 'fixed' |
|
569
|
0 |
0 |
if ($outfile{$self}) |
|
570
|
0 |
0 |
unless open OFH, '>>', $outfile{$self} |
|
579
|
0 |
0 |
if defined $p |
|
580
|
0 |
0 |
if defined $s |
|
601
|
0 |
0 |
if (defined $wnt and $nocompoundify == 0 and defined !$tagged and not $wnformat{$self}) |
|
607
|
0 |
0 |
if ($stoplist{$self}) { } |
|
609
|
0 |
0 |
if ($self->isStop($word)) { } |
|
622
|
0 |
0 |
if ($tagged) |
|
625
|
0 |
0 |
unless (defined $wpos) |
|
659
|
0 |
0 |
unless (ref $senses[$targetIdx]) |
|
667
|
0 |
0 |
if $lower < 0 |
|
669
|
0 |
0 |
if $upper > $#context |
|
674
|
0 |
0 |
if $lower == 0 |
|
675
|
0 |
0 |
unless (defined $senses[$i] and scalar @{$senses[$i];} > 0) |
|
684
|
0 |
0 |
if $upper >= scalar $#context |
|
685
|
0 |
0 |
unless (defined $senses[$j] and scalar @{$senses[$j];} > 0) |
|
696
|
0 |
0 |
if ($targetIdx == 0 and $window == 2) |
|
701
|
0 |
0 |
if ($trace{$self} and $trace{$self}{'level'} & 1) |
|
703
|
0 |
0 |
if ($lower < $targetIdx) |
|
712
|
0 |
0 |
if ($targetIdx < $upper) |
|
721
|
0 |
0 |
if ($sense1firstword) { } |
|
726
|
0 |
0 |
if (defined $t) { } |
|
735
|
0 |
0 |
if ($forcepos{$self}) { } |
|
746
|
0 |
0 |
if ($fixed{$self}) |
|
747
|
0 |
0 |
if ($result =~ /\#[nvars]\#\d/) |
|
797
|
0 |
0 |
if (defined $tmp) { } |
|
822
|
0 |
0 |
if (${$word_ref;} =~ /\#o|\#IT|\#CL|\#NT|\#MW/) |
|
827
|
0 |
0 |
if (not $wnformat{$self}) { } |
|
833
|
0 |
0 |
if (scalar @forms == 0) { } |
|
839
|
0 |
0 |
if (scalar @t > 0) |
|
851
|
0 |
0 |
if ($#best_senses < 0) { } |
|
|
0 |
0 |
elsif ($best_senses[$#best_senses][1] < $freq) { } |
|
|
0 |
0 |
elsif ($best_senses[$#best_senses][1] == $freq) { } |
|
865
|
0 |
0 |
if (scalar @best_senses) |
|
888
|
0 |
0 |
if ($word =~ /\#o|\#IT|\#CL|\#NT|\#MW/) |
|
895
|
0 |
0 |
if (not $wnformat{$self}) { } |
|
902
|
0 |
0 |
if (scalar @forms == 0) { } |
|
908
|
0 |
0 |
if (scalar @t > 0) |
|
913
|
0 |
0 |
if (scalar @senses) { } |
|
942
|
0 |
0 |
unless (ref $$senses_ref[$targetIdx] and defined $$senses_ref[$targetIdx][$i]) |
|
954
|
0 |
0 |
if $contextIdx == $targetIdx |
|
955
|
0 |
0 |
unless ref $$senses_ref[$contextIdx] |
|
961
|
0 |
0 |
if (needCoercePos($target_pos, $$senses_ref[$contextIdx])) { } |
|
971
|
0 |
0 |
unless (defined $$senses_ref[$contextIdx][$k]) |
|
980
|
0 |
0 |
if ($trace{$self}{'level'} & 8) |
|
982
|
0 |
0 |
if (defined $tempScores[$k] and $tempScores[$k] > 0 or $trace{$self}{'level'} & 16) |
|
984
|
0 |
0 |
defined $tempScores[$k] ? : |
|
994
|
0 |
0 |
if ($trace{$self}{'level'} & 32 and defined $tempScores[$k] && $tempScores[$k] > 0 || $trace{$self}{'level'} & 16) |
|
1000
|
0 |
0 |
unless defined $tempScores[$k] |
|
1004
|
0 |
0 |
unless defined $temp |
|
1005
|
0 |
0 |
if $temp > $best |
|
1008
|
0 |
0 |
if ($best > $pairScore{$self}) |
|
1017
|
0 |
0 |
if (ref $trace{$self} and $trace{$self}{'level'} & 4) |
|
1025
|
0 |
0 |
unless defined $tscore |
|
1027
|
0 |
0 |
if ($trace{$self}{'level'} & 4 and $tscore > 0 || $trace{$self}{'level'} & 16) |
|
1032
|
0 |
0 |
if ($trace{$self}{'level'} & 32 || $trace{$self}{'level'} & 8 and defined $traces[$i]) |
|
1041
|
0 |
0 |
unless $tscore > $contextScore{$self} |
|
1043
|
0 |
0 |
if ($tscore > $best_tscore) |
|
1049
|
0 |
0 |
if ($best_tscore < 0) |
|
1053
|
0 |
0 |
if (ref $trace{$self} and $trace{$self}{'level'} & 2) |
|
1079
|
0 |
0 |
unless (ref $$senses_ref[$targetIdx] and defined $$senses_ref[$targetIdx][$i]) |
|
1087
|
0 |
0 |
if ($usemono == 1 and $#{$$senses_ref[$targetIdx];} == 0) |
|
1097
|
0 |
0 |
if $contextIdx == $targetIdx |
|
1098
|
0 |
0 |
unless ref $$senses_ref[$contextIdx] |
|
1102
|
0 |
0 |
unless (defined $$senses_ref[$contextIdx][$k]) |
|
1111
|
0 |
0 |
if ($trace{$self}{'level'} & 8) |
|
1113
|
0 |
0 |
if (defined $tempScores[$k] and $tempScores[$k] > 0 or $trace{$self}{'level'} & 16) |
|
1115
|
0 |
0 |
defined $tempScores[$k] ? : |
|
1126
|
0 |
0 |
if ($trace{$self}{'level'} & 32 and defined $tempScores[$k] && $tempScores[$k] > 0 || $trace{$self}{'level'} & 16) |
|
1133
|
0 |
0 |
unless defined $tempScores[$k] |
|
1137
|
0 |
0 |
unless defined $temp |
|
1139
|
0 |
0 |
if $temp > $best |
|
1142
|
0 |
0 |
if ($best > $pairScore{$self}) |
|
1151
|
0 |
0 |
if (ref $trace{$self} and $trace{$self}{'level'} & 4) |
|
1160
|
0 |
0 |
unless defined $tscore |
|
1162
|
0 |
0 |
if ($trace{$self}{'level'} & 4 and $tscore > 0 || $trace{$self}{'level'} & 16) |
|
1167
|
0 |
0 |
if ($trace{$self}{'level'} & 32 || $trace{$self}{'level'} & 8 and defined $traces[$i]) |
|
1176
|
0 |
0 |
unless $tscore > $contextScore{$self} |
|
1178
|
0 |
0 |
if ($tscore > $best_tscore) |
|
1184
|
0 |
0 |
if ($best_tscore < 0) |
|
1187
|
0 |
0 |
if ($backoff == 1) |
|
1192
|
0 |
0 |
if (ref $trace{$self} and $trace{$self}{'level'} & 2) |
|
1210
|
0 |
0 |
if ($word =~ /^$re$/) |
|
1226
|
0 |
0 |
unless ($pos eq 'n' or $pos eq 'v') |
|
1232
|
0 |
0 |
if ($pos eq getPos($wps)) |
|
1245
|
0 |
0 |
if ($index < 0) { } |
|
|
0 |
0 |
elsif ($index == 0) { } |
|
|
0 |
0 |
elsif (index($wordpos, q[']) == 0) { } |
|
1262
|
0 |
0 |
if (defined $new_pos_tag and $new_pos_tag =~ /[nvar]/) { } |
|
|
0 |
0 |
elsif (defined $new_pos_tag and $new_pos_tag =~ /[cf]/) { } |
|
|
0 |
0 |
elsif (not defined $new_pos_tag) { } |
|
1281
|
0 |
0 |
if ($word eq q['s]) { } |
|
|
0 |
0 |
elsif ($word eq q['re]) { } |
|
|
0 |
0 |
elsif ($word eq q['d]) { } |
|
|
0 |
0 |
elsif ($word eq q['ll]) { } |
|
|
0 |
0 |
elsif ($word eq q['em]) { } |
|
|
0 |
0 |
elsif ($word eq q['ve]) { } |
|
|
0 |
0 |
elsif ($word eq q['m]) { } |
|
|
0 |
0 |
elsif ($word eq q['t]) { } |
|
1282
|
0 |
0 |
if ($tag =~ /^V/) { } |
|
1355
|
0 |
0 |
if (0 >= scalar @forms) |
|
1363
|
0 |
0 |
if ($form =~ /$cpattern/) |
|
1374
|
0 |
0 |
if ($candidate =~ /$cpattern/) |
|
1391
|
0 |
0 |
if (${$context_ref;}[$i] =~ /\#o|\#IT|\#CL|\#NT|\#MW/) { } |
|
1396
|
0 |
0 |
if (not $wnformat{$self}) { } |
|
1402
|
0 |
0 |
if (scalar @forms == 0) { } |
|
1421
|
0 |
0 |
unless open SFH, '<', $file |
|
1425
|
0 |
0 |
if ($line =~ m[/(.*)/]) { } |
|
1439
|
0 |
0 |
if $p < 0 |