Text::Scws - Perl interface to libscws
use Text::Scws; $scws = Text::Scws->new(); $scws->set_dict('/path/to/dict.xdb'); $scws->set_rule('/path/to/rule.ini'); $scws->set_ignore(1); $scws->set_multi(1); $s = shift; $scws->send_text($s); while ($r = $scws->get_result()) { foreach (@$r) { print $_->{word}, " "; } } print "\n";
The Text::Scws module provides a Perl interface to the libscws (by hightman).
Text::Scws objects provide the following methods:
todo
Xueron Nee <xueron@xueron.com>
SCWS - http://www.hightman.cn/index.php?scws
To install Text::Scws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Scws
CPAN shell
perl -MCPAN -e shell install Text::Scws
For more information on module installation, please visit the detailed CPAN module installation guide.