lib/Text/Summarizer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 38 | 58 | 65.5 |
line | l | !l | condition |
---|---|---|---|
189 | 0 | 0 | chomp $_ and $watchlist{$_} = 1 |
201 | 0 | 16575 | chomp $_ and $stopwords{$_} = 1 |
206 | 0 | 0 | chomp $_ and $stopwords{$_} = 1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
507 | 2572 | 174 | 6300 | $real and scalar keys %L_scrap >= $self->phrase_thresh |
592 | 5 | 607 | 11 | $score >= $lower and $score < $score_hash{$word_keys[$index - 1]} |
613 | 0 | 0 | 0 | $score > $lower and $score < $upper |
631 | 0 | 0 | 0 | $score >= $lower && ($score < $score_hash{$word_keys[$index - 1]} ? '-' x $score : '+' x $score) |
line | l | !l | condition |
---|---|---|---|
352 | 74 | 0 | int $self->article_length * $self->freq_constant // 1 |
533 | 4780 | 6197 | $self->freq_hash->{$word} // 0 |
534 | 4780 | 6197 | $self->sigma_hash->{$word} // 0 |
535 | 10977 | 0 | $fragment->{'counts'}{$word} // 0 |
589 | 32 | 1 | $self->watchlist // {} |
662 | 160989 | 156656 | $self->freq_hash->{$word} // 0 |
663 | 160989 | 156656 | $self->sigma_hash->{$word} // 0 |
664 | 83929 | 233716 | $score_hash{$word} // 0 |
677 | 3272 | 5078 | $self->freq_hash->{$word} // 0 |
678 | 3272 | 5078 | $self->sigma_hash->{$word} // 0 |
679 | 3277 | 5073 | $score_hash{$word} // 0 |
724 | 1261 | 0 | $self->freq_hash->{$_} // 0 |
725 | 1261 | 0 | $self->sigma_hash->{$_} // 0 |
726 | 1258 | 3 | $self->score_hash->{$_} // 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
264 | 0 | 1 | 0 | $dir_path // $self->articles_path |
307 | 0 | 1 | 0 | $dir_path // $self->articles_path |
434 | 83664 | 9136 | 0 | $L_pos // $R_pos |
492 | 17648 | 9826 | 8470 | $next == $curr + 1 or $curr == $prev + 1 |