line |
true |
false |
branch |
57
|
5 |
40 |
if (defined $self->{'_model_file'}{$class})
|
62
|
1 |
39 |
unless (defined $file)
|
66
|
1 |
38 |
unless (-r $file)
|
80
|
11 |
6 |
if (defined $self->{'_model_file'}{$class})
|
101
|
0 |
10 |
unless (defined $file)
|
114
|
0 |
5 |
unless open my $fh, '<', \$string
|
116
|
0 |
5 |
unless (defined $string)
|
135
|
1 |
18 |
unless (defined $ngram)
|
139
|
0 |
18 |
if (not defined $fh) { }
|
|
0 |
18 |
elsif (ref $fh ne 'GLOB') { }
|
151
|
0 |
93 |
unless ($_)
|
162
|
18277 |
18506 |
if (defined $self->{'_frequency'}{$w})
|
179
|
27 |
6 |
if (defined $actRes{$l})
|
190
|
27 |
6 |
if (defined $actRes{$l})
|
219
|
0 |
38 |
if ($self->{'_model_file'}{$class})
|
223
|
0 |
38 |
unless open my $fh, '<:gzip:bytes', $file
|
227
|
18 |
20 |
if (not defined $self->{'_ngram'}) { }
|
230
|
1 |
19 |
if ($ngram != $self->{'_ngram'})
|
245
|
28828 |
17251 |
if (defined $self->{'_frequency'}{$word}{$class})
|
263
|
0 |
11 |
unless ($self->{'_model_file'}{$class})
|
272
|
4 |
7 |
if (scalar @$classes == 0)
|