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

NAME

String::Thai::Segmentation - an object-oriented interface of Thai word segmentation

SYNOPSIS

        use String::Thai::Segmentation;

        #create object
        $sg=String::Thai::Segmentation->new();

        # insert separator to $thai_string
        $result=$sg->separate($thai_string,$separator);

        # split $thai_string to array include all spacing
        @result=$sg->cut($thai_string);

        # split $thai_string to array exclude spacing
        @result=$sg->cut_no_space($thai_string);

        # split $thai_string to array as of the original library
        @result=$sg->cut_raw($thai_string);

DESCRIPTION

Thai language is known to be a "word-sticked language", all words in a sentence are next to each other with out spacing. It is hard for programmers to solve problems on this kind of language, such as translating or searching.

The module is a object-oriented interface of Thai word segmentation library (http://thaiwordseg.sourceforge.net).

EXPORT

None by default.

SEE ALSO

http://thaiwordseg.sourceforge.net

AUTHOR

Komtanoo Pinpimai(romerun@romerun.com)

COPYRIGHT AND LICENSE

Perl License.