[SP-pm] Feature ou Bug?

Blabos de Blebe blabos at gmail.com
Wed Jul 23 14:28:18 PDT 2008


!? Hein !?

On Wed, Jul 23, 2008 at 6:20 PM, Geraldo Netto <geraldonetto em gmail.com> wrote:
> <null>
> isso tudo é sobre threads e sockets?
> </null>
> Versteht ihr mich?
> Hört ihr mich?
>
> Abraços!
>
> Geraldo
> São Paulo, Brasil, -3gmt
> site: http://exdev.sf.net/
> msn: geraldo_boca_at_hotmail.com
> skype: geraldo-netto
> icq: 145-061-456
>
>
> 2008/7/23 Blabos de Blebe <blabos em gmail.com>:
>>> Se você se sentir sozinho e desamparado, grita, que eu estou por aqui ;)
>>
>> Alguém !?
>>
>>
>>
>> On Wed, Jul 23, 2008 at 11:41 AM, Blabos de Blebe <blabos em gmail.com> wrote:
>>> Olá Perlsoal,
>>>
>>> Recentemente eu andei brincando com umas strings e ao rodar o código:
>>>
>>> <code>
>>> #!/usr/bin/perl
>>>
>>> use String::Trigram;
>>>
>>>
>>> @lista1 = qw/abacate laranja abobora/;
>>> @lista2 = qw/abacate laranja abobora/;
>>> @lista3 = qw/abacate laranja abobora/;
>>>
>>> $trig = String::Trigram->new(
>>>                          "cmpBase"           =>  [],
>>>                          "minSim"            =>  0.1,
>>>                          "warp"              =>  1.0,
>>>                          "ignoreCase"        =>  1,
>>>                          "keepOnlyAlNums"    =>  1,
>>>                          "ngram"             =>  3,
>>>                          "debug"             =>  0
>>>                      );
>>>
>>> @bm1 = ();
>>> @bm2 = ();
>>> @bm3 = ();
>>>
>>>
>>> $trig->reInit(\@lista1);
>>> $sim = $trig->getBestMatch( 'abacate', \@bm1);
>>> print $sim, $/;
>>>
>>> $trig->reInit(\@lista2);
>>> $sim = $trig->getBestMatch( 'abacate', \@bm2);
>>> print $sim, $/;
>>>
>>> $trig->reInit(\@lista3);
>>> $sim = $trig->getBestMatch( 'abacate', \@bm3);
>>> print $sim, $/;
>>> </code>
>>>
>>> Eu esperava obeter:
>>>
>>> <result>
>>> 1
>>> 1
>>> 1
>>> </result>
>>>
>>> Mas obtive:
>>>
>>> <result>
>>> 1
>>> 0
>>> 0
>>> </result>
>>>
>>> Seria isso uma Feature, Bug, ou eu não estou dormindo o quanto deveria?
>>>
>>> Abraços
>>>
>> _______________________________________________
>> SaoPaulo-pm mailing list
>> SaoPaulo-pm em pm.org
>> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>>
> _______________________________________________
> SaoPaulo-pm mailing list
> SaoPaulo-pm em pm.org
> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>


More information about the SaoPaulo-pm mailing list