| 1 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | package Clusterize::Pattern; | ||
| 4 | 3 | ▶ | use Digest::MD5; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | our $VERSION = '0.02'; | |
| 6 | |||
| 7 | 0 | ▶ | sub new { return bless {}, shift } |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 8 | 0 | ▶ | sub text2digest { return {} } |
|
Subroutine
text2digest: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 9 | 0 | ▶ | sub pattern { return } |
|
Subroutine
pattern: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 10 | 0 | ▶ | sub accuracy { return } |
|
Subroutine
accuracy: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 11 | 0 | ▶ | sub size { return } |
|
Subroutine
size: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 12 | |||
| 13 | 3 | 1; | |
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Clusterize::Pattern - provides various information about clusters built by Clusterize module. | ||
| 18 | |||
| 19 | =head1 VERSION | ||
| 20 | |||
| 21 | Version 0.02 | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | B<Clusterize::Pattern> module is used by B<Clusterize> module to provide the following information for the cluster: B<pattern>, B<accuracy>, B<size>, B<digest>. | ||
| 26 | |||
| 27 | =head1 METHODS | ||
| 28 | |||
| 29 | =head2 pattern | ||
| 30 | |||
| 31 | Returns regular expression that matches all strings in given cluster. | ||
| 32 | |||
| 33 | =head2 accuracy | ||
| 34 | |||
| 35 | Returns the value between 0 and 1 that reflects the similarity of strings in the given cluster. | ||
| 36 | The accuracy value tends to 1 for very accurate clusters and to 0 for fuzzy clusters. | ||
| 37 | |||
| 38 | =head2 size | ||
| 39 | |||
| 40 | Returns the number of unique keys in given cluster. | ||
| 41 | |||
| 42 | =head2 digest | ||
| 43 | |||
| 44 | Returns MD5 hex digest for given cluster. It could be used to identify unique clusters. | ||
| 45 | |||
| 46 | =head2 pairs | ||
| 47 | |||
| 48 | Returns hash of key/value pairs for given cluster. | ||
| 49 | |||
| 50 | |||
| 51 | =head1 AUTHOR | ||
| 52 | |||
| 53 | Slava Moiseev, <slava.moiseev@yahoo.com> | ||
| 54 | |||