Text::Scws - Perl interface to libscws


Text-Scws documentation Contained in the Text-Scws distribution.

Index


Code Index:

NAME

Top

Text::Scws - Perl interface to libscws

SYNOPSIS

Top

  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

Top

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

Utility methods

Text::Scws objects provide the following methods:

todo

ERRORS

Top

todo

NOTES

Top

todo

AUTHOR

Top

Xueron Nee <xueron@xueron.com>

SEE ALSO

Top

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.