Yahoo::CAS is a simple interface for Yahoo! Asia keyword segment and TVS open APIs.
This document describes version 0.1 of Yahoo::CAS , released January 16, 2008.
use Yahoo::CAS;
$cas = Yahoo::CAS({ appid => "Ea6oQPHIkY03GklWeauQHWPpPJByMjCDoxRxcW"}); $res = $cas->ws({content => '..........'); $list = $cas->ke({thredhold => '30', maxnum => '10', content => '...'); print $res->{token} for (keys %{$Segment}); print $res->{token} for (keys %{$Keyword});
Yahoo! Asia provides open APIs for segment and keyword extract for an article. The ws is for segment and the ke is for the concept extract of article. So you just need to apply the appid and then you can use it very easy.
For more methods, please just refer the Yahoo! Developers Network in Taiwan. <http://tw.developer.yahoo.com/cas/api.php>
Hsin-Chan Chien <hcchien@hcchien.org>
Copyright 2009 by Hsin-Chan Chien <hcchien@hcchien.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Yahoo::CAS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yahoo::CAS
CPAN shell
perl -MCPAN -e shell install Yahoo::CAS
For more information on module installation, please visit the detailed CPAN module installation guide.