| line |
true |
false |
branch |
|
39
|
1 |
0 |
unless ($params{'modeldir'}) |
|
44
|
0 |
1 |
unless (exists $params{'modeldir'}) |
|
47
|
0 |
1 |
unless (-d $params{'modeldir'}) |
|
58
|
1 |
27 |
unless (defined $self->{'models'}) |
|
81
|
0 |
1 |
unless opendir my $dh, $self->{'modeldir'} |
|
84
|
2 |
55 |
unless ($f =~ /\.train$/) |
|
89
|
0 |
55 |
unless open my $fh, '<:encoding(utf8)', $path |
|
94
|
0 |
16500 |
unless (defined $k) |
|
117
|
227 |
2625 |
if ($is_alph and not $inf->{'block'} eq $prev) |
|
124
|
2848 |
4 |
if ($current_run > -1) |
|
150
|
2657 |
195 |
if ($known) |
|
166
|
10 |
18 |
if (has_supplemental_latin(@$types)) |
|
169
|
7 |
21 |
if (has_extended_latin(@$types)) |
|
172
|
0 |
28 |
if (has_latin_extended_additional(@$types)) |
|
175
|
16 |
12 |
unless ($upgrade) |
|
181
|
198 |
13 |
if ($type =~ /Latin/) |
|
184
|
38 |
173 |
unless ($type eq $last_type) |
|
218
|
0 |
28 |
if (exists $scripts{'Hangul Syllables'} or exists $scripts{'Hangul Jamo'} or exists $scripts{'Hangul Compatibility Jamo'} or exists $scripts{'Hangul'}) |
|
224
|
1 |
27 |
if (exists $scripts{'Greek and Coptic'}) |
|
229
|
0 |
27 |
if (exists $scripts{'Katakana'} or exists $scripts{'Hiragana'} or exists $scripts{'Katakana Phonetic Extensions'}) |
|
236
|
0 |
26 |
if (exists $scripts{'CJK Unified Ideographs'} or exists $scripts{'Bopomofo'} or exists $scripts{'Bopomofo Extended'} or exists $scripts{'KangXi Radicals'} or exists $scripts{'Arabic Presentation Forms-A'}) |
|
244
|
7 |
19 |
if (exists $scripts{'Cyrillic'}) |
|
249
|
0 |
18 |
if (exists $scripts{'Arabic'} or exists $scripts{'Arabic Presentation Forms-A'} or exists $scripts{'Arabic Presentation Forms-B'}) |
|
255
|
0 |
18 |
if (exists $scripts{'Devanagari'}) |
|
263
|
1 |
306 |
if (exists $scripts{$s}) |
|
268
|
0 |
17 |
if (exists $scripts{'Superfreak Latin'}) |
|
272
|
7 |
10 |
if (exists $scripts{'Exotic Latin'}) |
|
276
|
5 |
5 |
if (exists $scripts{'Accented Latin'}) |
|
281
|
5 |
0 |
if (exists $scripts{'Basic Latin'}) |
|
298
|
10 |
494 |
unless (exists $self->{'models'}{$l}) |
|
313
|
0 |
0 |
if (@sorted) |
|
318
|
0 |
0 |
unless ($scores{$next} == $firstscore) |
|
334
|
8688 |
39149 |
exists $m2->{$k} ? : |
|
353
|
12219 |
883 |
$trigrams{$b} == $trigrams{$a} ? : |