Show
Ignore:
Timestamp:
10/29/08 07:08:50 (5 years ago)
Author:
miki
Message:

微修正

Location:
lang/perl/Lingua-JA-TFIDF/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Lingua-JA-TFIDF/trunk/Changes

    r22301 r22307  
    11Revision history for Perl extension Lingua::JA::TFIDF 
     2 
     30.00002  2008/10/29 
     4        - use Text::MeCab 
     5        - Fix documentation 
    26 
    370.00001  2008/10/28  
  • lang/perl/Lingua-JA-TFIDF/trunk/Makefile.PL

    r22301 r22307  
    66all_from 'lib/Lingua/JA/TFIDF.pm'; 
    77 
     8requires('Text::MeCab'); 
    89requires('List::MoreUtils'); 
    910requires('Storable'); 
     
    1516requires('HTML::Feature'); 
    1617build_requires 'Test::More'; 
     18recommends('YAML::Sync'); 
     19recommends('Getopt::Long'); 
     20recommends('Term::ReadLine'); 
     21recommends('HTML::Feature'); 
    1722use_test_base; 
    1823auto_install; 
  • lang/perl/Lingua-JA-TFIDF/trunk/lib/Lingua/JA/TFIDF.pm

    r22305 r22307  
    1212__PACKAGE__->mk_accessors($_) for qw( _mecab _df_data ng_word _fetcher); 
    1313 
    14 our $VERSION = '0.00001'; 
     14our $VERSION = '0.00002'; 
    1515 
    1616my $N = 25000000000; 
     
    164164=head1 NAME 
    165165 
    166 Lingua::JA::TFIDF - TFIDF Calculator based on MeCab. 
     166Lingua::JA::TFIDF - TF/IDF calculator based on MeCab. 
    167167 
    168168=head1 SYNOPSIS 
     
    173173  my $calc = Lingua::JA::TFIDF->new(%config); 
    174174 
    175   # calculate TFIDF and return a result object. 
     175  # calculate TF/IDF and return a result object. 
    176176  my $result = $calc->tfidf($text); 
    177177  print Dumper $result->list; 
     
    187187* This software is still in alpha release *  
    188188 
    189 Lingua::JA::TFIDF is TFIDF Calculator based on MeCab. 
     189Lingua::JA::TFIDF is TF/IDF calculator based on MeCab. 
    190190It has DF(Document Frequency) data set that was fetched from Yahoo Search API, beforehand. 
    191191 
     
    208208=head2 tfidf($text);  
    209209 
    210 Calculates TFIDF score. 
     210Calculates TF/IDF score. 
    211211If the text includes unknown words, Document Frequency score of unknown words are replaced the average score of known words. 
    212212If you set TRUE value to fetch_df parameter on constructor, the calculator fetches the unknown word from Yahoo Search API.  
     
    222222You can replace NG word. 
    223223 
     224=head2 mecab  
     225 
     226Inner accessor method. 
     227 
    224228=head2 df_data  
    225229