line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::YaTeA::MonolexicalPhrase; |
2
|
5
|
|
|
5
|
|
37
|
use Lingua::YaTeA::Phrase; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
35
|
|
3
|
5
|
|
|
5
|
|
2071
|
use Lingua::YaTeA::MonolexicalUnit; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
59
|
|
4
|
5
|
|
|
5
|
|
130
|
use strict; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
93
|
|
5
|
5
|
|
|
5
|
|
31
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
106
|
|
6
|
5
|
|
|
5
|
|
25
|
use NEXT; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
24
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our @ISA = qw(Lingua::YaTeA::Phrase Lingua::YaTeA::MonolexicalUnit); |
9
|
|
|
|
|
|
|
our $counter = 0; |
10
|
|
|
|
|
|
|
our $parsed = 0; |
11
|
|
|
|
|
|
|
our $VERSION=$Lingua::YaTeA::VERSION; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new |
14
|
|
|
|
|
|
|
{ |
15
|
42
|
|
|
42
|
1
|
99
|
my ($class,$num_content_words,$words_a,$tag_set) = @_; |
16
|
42
|
|
|
|
|
74
|
my $this = shift; |
17
|
42
|
50
|
|
|
|
138
|
$this = bless {}, $this unless ref $this; |
18
|
42
|
|
|
|
|
332
|
$this->NEXT::new(@_); |
19
|
42
|
|
|
|
|
147
|
return $this; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub print |
23
|
|
|
|
|
|
|
{ |
24
|
34
|
|
|
34
|
1
|
65
|
my ($this,$fh) = @_; |
25
|
34
|
50
|
|
|
|
71
|
if(defined $fh) |
26
|
|
|
|
|
|
|
{ |
27
|
34
|
|
|
|
|
95
|
print $fh "if: " . $this->getIF . "\n"; |
28
|
34
|
|
|
|
|
107
|
print $fh "pos: " . $this->getPOS . "\n"; |
29
|
34
|
|
|
|
|
92
|
print $fh "lf: " . $this->getLF . "\n"; |
30
|
34
|
|
|
|
|
93
|
print $fh "is a term candidate: " . $this->isTC. "\n"; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
else |
33
|
|
|
|
|
|
|
{ |
34
|
0
|
|
|
|
|
|
print "if: " . $this->getIF . "\n"; |
35
|
0
|
|
|
|
|
|
print "pos: " . $this->getPOS . "\n"; |
36
|
0
|
|
|
|
|
|
print "lf: " . $this->getLF . "\n"; |
37
|
0
|
|
|
|
|
|
print "is a term candidate: " . $this->isTC. "\n"; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |