| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Lingua::YaTeA::MonolexicalPhrase; | 
| 2 | 5 |  |  | 5 |  | 33 | use Lingua::YaTeA::Phrase; | 
|  | 5 |  |  |  |  | 11 |  | 
|  | 5 |  |  |  |  | 35 |  | 
| 3 | 5 |  |  | 5 |  | 1742 | use Lingua::YaTeA::MonolexicalUnit; | 
|  | 5 |  |  |  |  | 11 |  | 
|  | 5 |  |  |  |  | 48 |  | 
| 4 | 5 |  |  | 5 |  | 109 | use strict; | 
|  | 5 |  |  |  |  | 13 |  | 
|  | 5 |  |  |  |  | 74 |  | 
| 5 | 5 |  |  | 5 |  | 23 | use warnings; | 
|  | 5 |  |  |  |  | 8 |  | 
|  | 5 |  |  |  |  | 84 |  | 
| 6 | 5 |  |  | 5 |  | 20 | use NEXT; | 
|  | 5 |  |  |  |  | 8 |  | 
|  | 5 |  |  |  |  | 15 |  | 
| 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 | 79 | my ($class,$num_content_words,$words_a,$tag_set) = @_; | 
| 16 | 42 |  |  |  |  | 54 | my $this = shift; | 
| 17 | 42 | 50 |  |  |  | 116 | $this = bless {}, $this unless ref $this; | 
| 18 | 42 |  |  |  |  | 247 | $this->NEXT::new(@_); | 
| 19 | 42 |  |  |  |  | 114 | return $this; | 
| 20 |  |  |  |  |  |  | } | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | sub print | 
| 23 |  |  |  |  |  |  | { | 
| 24 | 34 |  |  | 34 | 1 | 56 | my ($this,$fh) = @_; | 
| 25 | 34 | 50 |  |  |  | 47 | if(defined $fh) | 
| 26 |  |  |  |  |  |  | { | 
| 27 | 34 |  |  |  |  | 73 | print $fh "if: " . $this->getIF . "\n"; | 
| 28 | 34 |  |  |  |  | 68 | print $fh "pos: " . $this->getPOS . "\n"; | 
| 29 | 34 |  |  |  |  | 68 | print $fh "lf: " . $this->getLF . "\n"; | 
| 30 | 34 |  |  |  |  | 69 | 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__ |