Takeshi Miki > Lingua-JA-Expand-0.01002 > Lingua::JA::Expand

Download:
Lingua-JA-Expand-0.01002.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01002   Source  

NAME ^

Lingua::JA::Expand - word expander by associatives

SYNOPSIS ^

  use Lingua::JA::Expand;
  use Data::Dumper;

  my %conf = (
    yahoo_api_appid => 'xxxxxxxxxxxxx',
    yahoo_api_premium => 1,
  );

  my $exp = Lingua::JA::Expand->new(%conf);

  # expand the word by associatives 
  my $word_set = $exp->expand($word);
  print Dumper $word_set;

  # you can tokenize a document by extract featured words. 
  my $word_set = $exp->tokenize($text);
  print Dumper $word_set;

DESCRIPTION ^

Lingua::JA::Expand is word expander by associatives

# 2011年4月以降、YahooAPIの仕様変更により、利用制限が厳しくなりました。 # 現在のところ、有料版のアカウントによるappidのみ、正常に動作するようです。(無料版ではまともに動きません)

  see =>  http://developer.yahoo.co.jp/webapi/search/premium.html

METHODS ^

new( yahoo_api_appid => 'xxxxxxxxx', yahoo_api_premium => 1 )

expand($word)

tokenize($text, $threshold)

tokenizer()

datasource()

AUTHOR ^

Takeshi Miki <miki@cpan.org>

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

syntax highlighting: