Lingua::EN::Sentence has lots of re's:
use Lingua::EN::Sentence qw( get_sentences ); sub nsentences { my ($num, @text) = @_; my $sentences = get_sentences(join " ",@text); join " ", @{$sentences}[0..$num-1]; }
After Compline,
Zaxo
In reply to Re: Retreaving N first sentences from text.
by Zaxo
in thread Retreaving N first sentences from text.
by c0d34w4y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |