Skip Menu |
 

This queue is for tickets about the Lingua-Identify CPAN distribution.

Report information
The Basics
Id: 73973
Status: open
Priority: 0/
Queue: Lingua-Identify

People
Owner: Nobody in particular
Requestors: wei_chao_2007 [...] hotmail.com
Cc:
AdminCc:

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



Subject: Bug report for Lingua::Identify
Date: Fri, 13 Jan 2012 16:21:07 +0800
To: <bug-lingua-identify [...] rt.cpan.org>
From: CHAO WEI <wei_chao_2007 [...] hotmail.com>
Download (untitled) / with headers
text/plain 1.2k
Hi experts, I am encountering a issue with Lingua::Identify, please find more information below: [Environment] ------------------------- Lingua::Identify is up to date (0.50). This is perl, v5.10.1 (*) built for MSWin32-x86-multi-thread OS Name: Microsoft Windows 7 Professional OS Version: 6.1.7601 Service Pack 1 Build 7601 [Description] ------------------------- Try to detect the language type for "Vulnerabilidade Windows Client/Server Runtime Subsystem pode permitir elevação de privilégio", code snippet below: =========== #!/usr/bin/perl use strict; use warnings; use Getopt::Long qw(:config no_ignore_case); use Lingua::Identify qw/:language_manipulation langof/; my $text = "Vulnerabilidade Windows Client/Server Runtime Subsystem pode permitir elevação de privilégio"; set_active_languages('en', 'pt', 'de', 'es', 'fr', 'it' ); my %languages = langof($text); print "\$test lang is:\n"; foreach my $lang (keys %languages) { print "$lang : ${languages{$lang}}\n" } my $language = langof($text); print "\n\$test is: $language\n";# if $language eq 'fr'; =========== The expected result should be 'pt', however, I got the print out result 'fr'. If you need more information, please feel free to let me know. Thanks for your time! -Terry
Download (untitled) / with headers
text/plain 1.6k
On Fri Jan 13 03:21:15 2012, wei_chao_2007@hotmail.com wrote: Show quoted text
> > Hi experts, > > I am encountering a issue with Lingua::Identify, please find more > information below: > > [Environment] > ------------------------- > Lingua::Identify is up to date (0.50). > > > This is perl, v5.10.1 (*) built for MSWin32-x86-multi-thread > > > OS Name: Microsoft Windows 7 Professional > OS Version: 6.1.7601 Service Pack 1 Build 7601 > > > [Description] > ------------------------- > Try to detect the language type for "Vulnerabilidade Windows > Client/Server Runtime Subsystem pode permitir elevação de privilégio", > code snippet below: > =========== > #!/usr/bin/perl > > > use strict; > use warnings; > use Getopt::Long qw(:config no_ignore_case); > use Lingua::Identify qw/:language_manipulation langof/; > > > my $text = "Vulnerabilidade Windows Client/Server Runtime Subsystem > pode permitir elevação de privilégio"; > > > set_active_languages('en', 'pt', 'de', 'es', 'fr', 'it' ); > > > my %languages = langof($text); > print "\$test lang is:\n"; > foreach my $lang (keys %languages) { > print "$lang : ${languages{$lang}}\n" > } > > > my $language = langof($text); > print "\n\$test is: $language\n";# if $language eq 'fr'; > =========== > > The expected result should be 'pt', however, I got the print out > result 'fr'. > > > > If you need more information, please feel free to let me know. > Thanks for your time! > > -Terry
Hello, Just to let you know I read your mail and will dig it out during the weekend. Unfortunately the detection of small text fragments is not easy, but in this case FR seems crazy. Would be happy with EN, but not FR :) Cheers ambs
Subject: RE: [rt.cpan.org #73973] Bug report for Lingua::Identify
Date: Sat, 14 Jan 2012 11:10:47 +0800
To: <bug-lingua-identify [...] rt.cpan.org>
From: CHAO WEI <wei_chao_2007 [...] hotmail.com>
Download (untitled) / with headers
text/plain 2.1k
Thank you for your time, Alberto! Best Regards, Terry Show quoted text
> Subject: [rt.cpan.org #73973] Bug report for Lingua::Identify > From: bug-Lingua-Identify@rt.cpan.org > To: wei_chao_2007@hotmail.com > Date: Fri, 13 Jan 2012 06:24:17 -0500 > > <URL: https://rt.cpan.org/Ticket/Display.html?id=73973 > > > On Fri Jan 13 03:21:15 2012, wei_chao_2007@hotmail.com wrote:
> > > > Hi experts, > > > > I am encountering a issue with Lingua::Identify, please find more > > information below: > > > > [Environment] > > ------------------------- > > Lingua::Identify is up to date (0.50). > > > > > > This is perl, v5.10.1 (*) built for MSWin32-x86-multi-thread > > > > > > OS Name: Microsoft Windows 7 Professional > > OS Version: 6.1.7601 Service Pack 1 Build 7601 > > > > > > [Description] > > ------------------------- > > Try to detect the language type for "Vulnerabilidade Windows > > Client/Server Runtime Subsystem pode permitir elevação de privilégio", > > code snippet below: > > =========== > > #!/usr/bin/perl > > > > > > use strict; > > use warnings; > > use Getopt::Long qw(:config no_ignore_case); > > use Lingua::Identify qw/:language_manipulation langof/; > > > > > > my $text = "Vulnerabilidade Windows Client/Server Runtime Subsystem > > pode permitir elevação de privilégio"; > > > > > > set_active_languages('en', 'pt', 'de', 'es', 'fr', 'it' ); > > > > > > my %languages = langof($text); > > print "\$test lang is:\n"; > > foreach my $lang (keys %languages) { > > print "$lang : ${languages{$lang}}\n" > > } > > > > > > my $language = langof($text); > > print "\n\$test is: $language\n";# if $language eq 'fr'; > > =========== > > > > The expected result should be 'pt', however, I got the print out > > result 'fr'. > > > > > > > > If you need more information, please feel free to let me know. > > Thanks for your time! > > > > -Terry
> > Hello, > > Just to let you know I read your mail and will dig it out during the > weekend. Unfortunately the detection of small text fragments is not > easy, but in this case FR seems crazy. Would be happy with EN, but not FR :) > > Cheers > ambs >


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.