Lingua::TFIDF::WordSegmenter::LetterNgram - Letter N-gram segmenter
version 0.01
use Lingua::TFIDF::WordSegmenter::LetterNgram; my $segmenter = Lingua::TFIDF::WordSegmenter::LetterNgram->new(n => 2); my $iter = $segmenter->segment('ロンドン橋落ちた 落ちた 落ちた...'); while (defined(my $word = $iter->())) { ... }
This class provides a N-gram word segmenter.
Constructor.
Executes word segmentation on given $document and returns an word iterator.
$document
Koichi SATOH <sekia@cpan.org>
This software is Copyright (c) 2014 by Koichi SATOH.
This is free software, licensed under:
The MIT (X11) License
To install Lingua::TFIDF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::TFIDF
CPAN shell
perl -MCPAN -e shell install Lingua::TFIDF
For more information on module installation, please visit the detailed CPAN module installation guide.