CAB/Analyzer/Morph/SMOR.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 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::Morph::SMOR.pm
4 ## Author: Bryan Jurish <moocow@cpan.org>
5 ## Description: morphological analysis via Gfsm automata, for use with SMOR-style transducers (German, e.g. zmorge)
6 ## + zmorge transducers and lexica available in SFST format https://pub.cl.uzh.ch/users/sennrich/zmorge/
7 ## + grammar and build rules availble from https://github.com/rsennrich/SMORLemma
8  
9 ##==============================================================================
10 ## Package: Analyzer::Morph
11 ##==============================================================================
12 package DTA::CAB::Analyzer::Morph::SMOR;
13 use DTA::CAB::Analyzer::Morph::Helsinki::DE;
14 use Carp;
15 use strict;
16 our @ISA = qw(DTA::CAB::Analyzer::Morph::Helsinki::DE);
17  
18 ## $obj = CLASS_OR_OBJ->new(%args)
19 ## + object structure: see DTA::CAB::Analyzer::Automaton::Gfsm
20 sub new {
21 my $that = shift;
22 my $aut = $that->SUPER::new(
23 ##-- defaults
24  
25 ##-- analysis selection
26 label => 'morph',
27 wantAnalysisLo => 0,
28 wantAnalysisLemma => 0, ##-- default=0
29 tolower => 0,
30 capsFallback => 1,
31  
32 ##-- verbosity
33 check_symbols => 0,
34  
35 ##-- user args
36 @_
37 );
38 return $aut;
39 }
40  
41 1; ##-- be happy
42  
43 __END__