line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::TFIDF::Types; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
5
|
1
|
|
|
1
|
|
6
|
use Mouse::Util::TypeConstraints; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
14
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
subtype 'Lingua::TFIDF::TermFrequency', as 'HashRef[Str]'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
duck_type 'Lingua::TFIDF::WordCounter' => [qw/add_count clear frequencies/]; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
duck_type 'Lingua::TFIDF::WordSegmenter' => [qw/segment/]; |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
149
|
no Mouse::Util::TypeConstraints; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding UTF-8 |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Lingua::TFIDF::Types |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 VERSION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
version 0.01 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 AUTHOR |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Koichi SATOH <sekia@cpan.org> |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
This software is Copyright (c) 2014 by Koichi SATOH. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This is free software, licensed under: |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
The MIT (X11) License |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |