blib/lib/Lingua/RU/OpenCorpora/Tokenizer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 27 | 56 | 48.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
117 | 55 | 0 | 0 | _is_hyphen($spacer) && (_is_cyr($ch) || _is_hyphen($ch) || _is_single_quote($ch)) |
145 | 3 | 0 | 0 | _is_hyphen($spacer) && (_is_cyr($ch) || _is_hyphen($ch) || _is_single_quote($ch)) |
192 | 147 | 6 | 0 | $spacer && _is_hyphen($$ctx{'spacer'}) |
194 | 147 | 0 | 6 | $spacer && !$spacer_is_hyphen |
147 | 0 | 6 | $spacer && !$spacer_is_hyphen | |
151 | 1 | 1 | _is_colon($$ctx{'spacer'}) && !!length($$ctx{'seq_right'}) | |
316 | 1 | 0 | 0 | $seq_left =~ /^[0-9]{1,2}$/ and $seq_right =~ /^[0-9]{2}$/ |
319 | 0 | 0 | 0 | $seq_left < 24 && $seq_right < 60 |
line | l | !l | condition |
---|---|---|---|
69 | 310 | 18 | defined $$ctx{$_} or $$ctx{$_} = '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
80 | 0 | 0 | 0 | $coeff >= $$options{'threshold'} or $$ctx{'pos'} == $#{$chars;} |
104 | 3 | 3 | 158 | $$ctx{'nextchar'} =~ m[([-./?=:&"!+()])] or $$ctx{'char'} =~ m[([-./?=:&"!+()])] |
125 | 0 | 6 | 49 | _is_hyphen($spacer) || _is_space($ch) |
130 | 0 | 49 | 6 | $case1 or $case2 |
153 | 0 | 0 | 3 | _is_hyphen($spacer) || _is_space($ch) |
158 | 0 | 3 | 0 | $case1 or $case2 |
183 | 11 | 153 | 0 | $_[0]{'_vectors_cache'}{$ckey} ||= $_[0]->_do_vectorize($_[1]) |
275 | 0 | 0 | 0 | not $_[1] or substr $_[1], 0, !1 |
302 | 0 | 0 | 3 | $_[0] =~ m[^\W*https?://?] or $_[0] =~ /^\W*www\./ |
0 | 0 | 3 | $_[0] =~ m[^\W*https?://?] or $_[0] =~ /^\W*www\./ or $_[0] =~ /.\.(?:[a-z]{2,3}|\x{440}\x{443}|\x{440}\x{444})\W*$/i |