Skip Menu |
 

This queue is for tickets about the Text-Ngrams CPAN distribution.

Report information
The Basics
Id: 22838
Status: new
Priority: 0/
Queue: Text-Ngrams

People
Owner: Nobody in particular
Requestors: jyang2 [...] unlnotes.unl.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bugs about the get_ngrams method of Text-Ngrams-1.8
Date: Mon, 6 Nov 2006 03:50:01 -0600
To: bug-Text-Ngrams [...] rt.cpan.org
From: Jingyi Yang <jyang2 [...] unlnotes.unl.edu>
Download (untitled) / with headers
text/plain 828b
Bug report for Text-Ngrams-1.8 package: Text-Ngrams-1.8 perl version: perl, v5.8.7 built for i686-linux Operation system: Linux2.6.9-34.ELsmp #1 SMP Wed Mar 8 00:27:03 CST 2006 i686 i686 i386 GNU/Linux (CentOS 4 actually or higher) There's a problem with the get_ngrams method when you initialize the object with a windowsize < 3. But the to_string method is always working fine. e.g. my $ng3 = Text::Ngrams->new(windowsize=>1); print $ng3->to_string; #works fine my @ngramsarray = $ng3->get_ngrams; #after the assignment, the @ngramsarray is still empty. However, if you set the windowsize >=3 during initialization, everything works fine. e.g. my $ng3 = Text::Ngrams->new(windowsize=>3); print $ng3->to_string; #works fine my @ngramsarray = $ng3->get_ngrams; #works fine, get results back Jingyi Yang


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.