From lojban+bncCI-H3dM3ENClweUEGgSblU1z@googlegroups.com Sat Oct 09 04:32:47 2010 Received: from mail-gy0-f189.google.com ([209.85.160.189]) by chain.digitalkingdom.org with esmtp (Exim 4.72) (envelope-from ) id 1P4XfQ-000164-KT; Sat, 09 Oct 2010 04:32:47 -0700 Received: by gya1 with SMTP id 1sf1962001gya.16 for ; Sat, 09 Oct 2010 04:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:mime-version :received:received:date:in-reply-to:x-ip:references:user-agent :x-http-useragent:message-id:subject:from:to:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=zPNFMYsAOuIHA3lgfTME95/Tz0RNwqrnn6B+AM1N7SI=; b=1hsBbxlpvErltB4SQ7WcM5oQ+1sXiz5zG9o0TR0c36LL3jeIZ5spoOEGg+BOtFcls2 VoyhB0gSiZjO4HvDdlqH+V2U1drVhQ61ZcZf+zQpGoVAMlqDCfdvHXLmesujk9fsKOAm q1UbGgUFoP4mcOcU75o39aTPmcycAkODut4eI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:mime-version:date:in-reply-to:x-ip:references :user-agent:x-http-useragent:message-id:subject:from:to :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-transfer-encoding; b=DQtRI38c+SMpy2c0mrKVTr+9Rd8g6aFCwVQKHZzJlm3Ssx8um9JMBFQZhJ18BlaCOB v+7sjRCFQDTe6TwnemRw9fHLoJOBGeMVWNa4kkta0/0iFkJUOjrW+B+FuJLW1MuA+wVb k0nsGWe0rxtukZMO2FLMvotu0VMjA/wDbVJ7M= Received: by 10.90.59.10 with SMTP id h10mr305596aga.2.1286623952095; Sat, 09 Oct 2010 04:32:32 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.90.69.15 with SMTP id r15ls176148aga.1.p; Sat, 09 Oct 2010 04:32:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.219.3 with SMTP id r3mr298762agg.10.1286623950404; Sat, 09 Oct 2010 04:32:30 -0700 (PDT) Received: by z28g2000yqh.googlegroups.com with HTTP; Sat, 9 Oct 2010 04:32:30 -0700 (PDT) Date: Sat, 9 Oct 2010 04:32:30 -0700 (PDT) In-Reply-To: X-IP: 89.232.124.106 References: <20101008152849.GA19103@sdf.lonestar.org> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe) Message-ID: <0700d562-bb21-4e03-b0b7-16511af09f9d@z28g2000yqh.googlegroups.com> Subject: [lojban] Re: ScoreGismu - the latest version ? From: najrut To: lojban X-Original-Sender: ruler11post@gmail.com Reply-To: lojban@googlegroups.com Precedence: list Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: lojban@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oh, sorry. I accidentally ran the old version of scoreGismu. Your fix works as a matter of fact. Thanks, Minimiscience ! On Oct 9, 3:23=A0pm, najrut wrote: > OK, I replaced those lines with yours. Then I created empty gismu.txt > file, "1.txt" file with "iun 0.36 emploi 0.21 upiog 0.16 us 0.11 > primin 0.09 amal 0.07" text and typed the command "perl scoreGismu.pl > 1.txt" > And again it results in "Top score is 0.489. mlino" > What's wrong ? > > On Oct 8, 7:28=A0pm, Minimiscience wrote: > > > de'i li 08 pi'e 10 pi'e 2010 la'o fy. najrut .fy. cusku zoi skamyxatra.= >http://jbotcan.org/en/res/1219.htmltalksabout some bug fixes to > > > scoreGismu. But where is the latest version stored indeed ? > > > > Is it fixed now so that it gives the best score to pilno instead of > > > mlino ? > > > .skamyxatra > > > I don't know if there's any "official" fix, but the pilno/mlino problem= can be > > solved by changing lines 114-118 from: > > > > =A0if($gismu =3D~ /$lcs[0].?$lcs[1]/) { > > > =A0 if($word =3D~ /$lcs[0].?$lcs[1]/) { > > > =A0 =A0$score +=3D $weight * 2 / @wordSequence; > > > =A0 } > > > =A0} > > > to: > > > > =A0$score +=3D $weight * 2 / @wordSequence > > > =A0 if $gismu =3D~ /$lcs[0]$lcs[1]/ && $word =3D~ /$lcs[0]$lcs[1]/ > > > =A0 || $gismu =3D~ /$lcs[0].$lcs[1]/ && $word =3D~ /$lcs[0].$lcs[1]/ > > > You'll also need to have an empty file in place of gismu.txt in order f= or > > extant {gismu} (and anything they conflict with) to be considered for s= coring. > > > mu'omi'e .kamymecraijun. > > > -- > > ko na xalni --=20 You received this message because you are subscribed to the Google Groups "= lojban" group. To post to this group, send email to lojban@googlegroups.com. To unsubscribe from this group, send email to lojban+unsubscribe@googlegrou= ps.com. For more options, visit this group at http://groups.google.com/group/lojban= ?hl=3Den.