The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::Scws - Perl interface to libscws

SYNOPSIS

  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";

DESCRIPTION

The Text::Scws module provides a Perl interface to the libscws (by hightman).

Utility methods

Text::Scws objects provide the following methods:

todo

ERRORS

todo

NOTES

todo

AUTHOR

Xueron Nee <xueron@xueron.com>

SEE ALSO

SCWS - http://www.hightman.cn/index.php?scws