line |
true |
false |
branch |
44
|
1 |
0 |
unless ($params{'modeldir'}) |
49
|
0 |
1 |
unless (-d $params{'modeldir'}) |
60
|
1 |
27 |
unless (defined $self->{'models'}) |
82
|
0 |
1 |
unless opendir my $dh, $self->{'modeldir'} |
85
|
2 |
55 |
unless ($f =~ /\.train$/) |
90
|
0 |
55 |
unless open my $fh, '<:encoding(utf8)', $path |
95
|
0 |
16500 |
unless (defined $k) |
118
|
227 |
2625 |
if ($is_alph and not $inf->{'block'} eq $prev) |
125
|
2848 |
4 |
if ($current_run > -1) |
151
|
2657 |
195 |
if ($known) |
167
|
10 |
18 |
if (has_supplemental_latin(@$types)) |
170
|
7 |
21 |
if (has_extended_latin(@$types)) |
173
|
0 |
28 |
if (has_latin_extended_additional(@$types)) |
176
|
16 |
12 |
unless ($upgrade) |
182
|
198 |
13 |
if ($type =~ /Latin/) |
185
|
38 |
173 |
unless ($type eq $last_type) |
221
|
0 |
56 |
if (exists $scripts{'Hangul Syllables'} or exists $scripts{'Hangul Jamo'} or exists $scripts{'Hangul Compatibility Jamo'} or exists $scripts{'Hangul'}) |
228
|
1 |
55 |
if (exists $scripts{'Greek and Coptic'}) |
232
|
0 |
55 |
if (exists $scripts{'Katakana'} or exists $scripts{'Hiragana'} or exists $scripts{'Katakana Phonetic Extensions'}) |
238
|
0 |
54 |
if (exists $scripts{'CJK Unified Ideographs'} or exists $scripts{'Bopomofo'} or exists $scripts{'Bopomofo Extended'} or exists $scripts{'KangXi Radicals'}) |
245
|
7 |
47 |
if (exists $scripts{'Cyrillic'}) |
249
|
0 |
46 |
if (exists $scripts{'Arabic'} or exists $scripts{'Arabic Presentation Forms-A'} or exists $scripts{'Arabic Presentation Forms-B'}) |
255
|
0 |
46 |
if (exists $scripts{'Devanagari'}) |
262
|
1 |
810 |
if (exists $scripts{$s}) |
267
|
0 |
45 |
if (exists $scripts{'Superfreak Latin'}) |
271
|
7 |
38 |
if (exists $scripts{'Exotic Latin'}) |
275
|
5 |
33 |
if (exists $scripts{'Accented Latin'}) |
279
|
5 |
28 |
if (exists $scripts{'Basic Latin'}) |
295
|
10 |
494 |
unless (exists $self->{'models'}{$l}) |
323
|
8688 |
39149 |
exists $m2->{$k} ? : |
342
|
12226 |
899 |
$trigrams{$b} == $trigrams{$a} ? : |