CAB/Analyzer/GermaNet/Synonyms.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 ## -*- Mode: CPerl -*-
2 ##
3 ## File: DTA::CAB::Analyzer::GermaNet::Synonyms.pm
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description: GermaNet relation expander: synonyms
6  
7 package DTA::CAB::Analyzer::GermaNet::Synonyms;
8 use DTA::CAB::Analyzer::GermaNet::RelationClosure;
9 use Carp;
10 use strict;
11  
12 ##==============================================================================
13 ## Globals
14 ##==============================================================================
15  
16 our @ISA = qw(DTA::CAB::Analyzer::GermaNet::RelationClosure);
17  
18 ##==============================================================================
19 ## Constructors etc.
20 ##==============================================================================
21  
22 ## $obj = CLASS_OR_OBJ->new(%args)
23 ## + object structure:
24 ## (
25 ## ##-- OVERRIDES in Hyperonyms
26 ## relations => ['hyperonymy','hyponymy'], ##-- override
27 ## label => 'gn-syn', ##-- override
28 ## max_depth => 0, ##-- override
29 ##
30 ## ##-- INHERITED from GermaNet::RelationClosure
31 ## relations => \@relns, ##-- relations whose closure to compute
32 ## analyzeGet => $code, ##-- accessor: coderef or string: source text (default=$DEFAULT_ANALYZE_GET; return undef for no analysis)
33 ## allowRegex => $regex, ##-- only analyze types matching $regex
34 ##
35 ## ##-- INHERITED from Analyzer::GermaNet
36 ## gnFile=> $dirname_or_binfile, ##-- default: none
37 ## gn => $gn_obj, ##-- underlying GermaNet object
38 ## max_depth => $depth, ##-- default maximum closure depth for relation_closure() [default=128]
39 ## label => $lab, ##-- analyzer label
40 ## )
41 sub new {
42 my $that = shift;
43 my $gna = $that->SUPER::new(
44 ##-- overrides
45 relations => [qw(has_hypernym has_hyponym)],
46 label => 'gn-syn',
47 max_depth => 0,
48  
49 ##-- user args
50 @_
51 );
52 return $gna;
53 }
54  
55 ##==============================================================================
56 ## Alias DTA::CAB::Analyzer::GermaNet::syn
57  
58 package DTA::CAB::Analyzer::GermaNet::syn;
59 use strict;
60 our @ISA = qw(DTA::CAB::Analyzer::GermaNet::Synonyms);
61  
62  
63 1; ##-- be happy
64  
65 __END__