String::Thai::Segmentation - an object-oriented interface of Thai word segmentation
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);
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).
None by default.
http://thaiwordseg.sourceforge.net
Komtanoo Pinpimai(romerun@romerun.com)
Perl License.
To install String::Thai::Segmentation, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::Thai::Segmentation
CPAN shell
perl -MCPAN -e shell install String::Thai::Segmentation
For more information on module installation, please visit the detailed CPAN module installation guide.