| Text-Scws documentation | Contained in the Text-Scws distribution. |
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
todo
todo
Xueron Nee <xueron@xueron.com>
SCWS - http://www.hightman.cn/index.php?scws
| Text-Scws documentation | Contained in the Text-Scws distribution. |
package Text::Scws; # @(#) $Id: $ # Copyright (c) 2008 Xueron Nee <xueron@xueron.com> use strict; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); require Exporter; require DynaLoader; require AutoLoader; @ISA = qw(Exporter AutoLoader DynaLoader); # Items to export into callers namespace by default. Note: do not export # names by default without a very good reason. Use EXPORT_OK instead. # Do not simply export all your public functions/methods/constants. @EXPORT_OK = qw(); $VERSION = '0.01'; bootstrap Text::Scws $VERSION; # Preloaded methods go here. # Autoload methods go after =cut, and are processed by the autosplit program. 1; __END__ # Below is the documentation for the module.