Block/W2A/EN/ParseMSTperl.pm

filter: Statementstmt 84.2% 16 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 79.1% 19 / 24 CC 1 SCAR 2.2
CC
1
Cov
84%
get_coarse_grained_tag
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Block/W2A/EN/Lemmatize.pm ↑ Summary Block/W2A/EN/Tokenize.pm »
1 package Treex::Block::W2A::EN::ParseMSTperl;
2 1 $Treex::Block::W2A::EN::ParseMSTperl::VERSION = '2.20151102';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 extends 'Treex::Block::W2A::ParseMSTperl';
7  
8 1 has '+model_name' => ( default => 'conll_2007_small' );
9 1 has '+model_dir' => ( default => 'data/models/parser/mst_perl/en' );
10  
11 1 has 'alignment_language' => ( isa => 'Str', is => 'ro', default => 'cs' );
12 1 has 'alignment_is_backwards' => ( isa => 'Bool', is => 'ro', default => '0' );
13  
14 0 ▶sub get_coarse_grained_tag {
Subroutine get_coarse_grained_tag: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my ( $self, $tag ) = @_;
16  
17 0 my $ctag = substr( $tag, 0, 2 );
18  
19 0 return $ctag;
20 }
21  
22 1 1;
23  
24 __END__
« Block/W2A/EN/Lemmatize.pm ↑ Summary Block/W2A/EN/Tokenize.pm »