Changeset 22307 for lang/perl/Lingua-JA-TFIDF
- Timestamp:
- 10/29/08 07:08:50 (5 years ago)
- Location:
- lang/perl/Lingua-JA-TFIDF/trunk
- Files:
-
- 3 modified
-
Changes (modified) (1 diff)
-
Makefile.PL (modified) (2 diffs)
-
lib/Lingua/JA/TFIDF.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Lingua-JA-TFIDF/trunk/Changes
r22301 r22307 1 1 Revision history for Perl extension Lingua::JA::TFIDF 2 3 0.00002 2008/10/29 4 - use Text::MeCab 5 - Fix documentation 2 6 3 7 0.00001 2008/10/28 -
lang/perl/Lingua-JA-TFIDF/trunk/Makefile.PL
r22301 r22307 6 6 all_from 'lib/Lingua/JA/TFIDF.pm'; 7 7 8 requires('Text::MeCab'); 8 9 requires('List::MoreUtils'); 9 10 requires('Storable'); … … 15 16 requires('HTML::Feature'); 16 17 build_requires 'Test::More'; 18 recommends('YAML::Sync'); 19 recommends('Getopt::Long'); 20 recommends('Term::ReadLine'); 21 recommends('HTML::Feature'); 17 22 use_test_base; 18 23 auto_install; -
lang/perl/Lingua-JA-TFIDF/trunk/lib/Lingua/JA/TFIDF.pm
r22305 r22307 12 12 __PACKAGE__->mk_accessors($_) for qw( _mecab _df_data ng_word _fetcher); 13 13 14 our $VERSION = '0.0000 1';14 our $VERSION = '0.00002'; 15 15 16 16 my $N = 25000000000; … … 164 164 =head1 NAME 165 165 166 Lingua::JA::TFIDF - TF IDF Calculator based on MeCab.166 Lingua::JA::TFIDF - TF/IDF calculator based on MeCab. 167 167 168 168 =head1 SYNOPSIS … … 173 173 my $calc = Lingua::JA::TFIDF->new(%config); 174 174 175 # calculate TF IDF and return a result object.175 # calculate TF/IDF and return a result object. 176 176 my $result = $calc->tfidf($text); 177 177 print Dumper $result->list; … … 187 187 * This software is still in alpha release * 188 188 189 Lingua::JA::TFIDF is TF IDF Calculator based on MeCab.189 Lingua::JA::TFIDF is TF/IDF calculator based on MeCab. 190 190 It has DF(Document Frequency) data set that was fetched from Yahoo Search API, beforehand. 191 191 … … 208 208 =head2 tfidf($text); 209 209 210 Calculates TF IDF score.210 Calculates TF/IDF score. 211 211 If the text includes unknown words, Document Frequency score of unknown words are replaced the average score of known words. 212 212 If you set TRUE value to fetch_df parameter on constructor, the calculator fetches the unknown word from Yahoo Search API. … … 222 222 You can replace NG word. 223 223 224 =head2 mecab 225 226 Inner accessor method. 227 224 228 =head2 df_data 225 229
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)