From lojban+bncCI-H3dM3EMOhweUEGgRhtS5Z@googlegroups.com Sat Oct 09 04:24:05 2010 Received: from mail-gy0-f189.google.com ([209.85.160.189]) by chain.digitalkingdom.org with esmtp (Exim 4.72) (envelope-from ) id 1P4XWz-0000m1-4d; Sat, 09 Oct 2010 04:24:05 -0700 Received: by gya1 with SMTP id 1sf1958228gya.16 for ; Sat, 09 Oct 2010 04:23:53 -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=T2eDJKHftgWmYm/1S2sJ3ErFOtXT9gs9HM9UGNDIrBM=; b=OEc5tmKDlz98YUw5yFYW4r3u5WhbAYxPBxXAbH9m2FwqrF5gTLRLsPQ6fqekkCHZSy KAymMVgDdqh4SUXbKtbGYvRqY/YR92PYvU2F7XtHBILDUwT4h5kblCDn9fWVpeZC7xgr 3TGIH85AMVh1UnUkgOpHQb4s8S5NlC2b4NoME= 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=DhKUXX1Cd1z52pJAN/+5R1Uf3vnaK+7tqU7B05GxRHTjZLkz3yzmAvQGtbjyAznS7c tSpkt4gah38fu4SU1KOR9Q0z97OpIHDnUuEeXeu7/Xm4qZgfmcZERuZkiy1b8YphEE+4 nAZ/vdDA0+o6RAtbE/5ez/CGa1TnoT+rwVwmI= Received: by 10.90.3.14 with SMTP id 14mr297633agc.3.1286623427753; Sat, 09 Oct 2010 04:23:47 -0700 (PDT) X-BeenThere: lojban@googlegroups.com Received: by 10.90.17.28 with SMTP id 28ls177398agq.6.p; Sat, 09 Oct 2010 04:23:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.91.196.10 with SMTP id y10mr298934agp.43.1286623426423; Sat, 09 Oct 2010 04:23:46 -0700 (PDT) Received: by x7g2000yqg.googlegroups.com with HTTP; Sat, 9 Oct 2010 04:23:46 -0700 (PDT) Date: Sat, 9 Oct 2010 04:23:46 -0700 (PDT) In-Reply-To: <20101008152849.GA19103@sdf.lonestar.org> 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: 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 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.>h= ttp://jbotcan.org/en/res/1219.htmltalks about 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 c= an 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 for > extant {gismu} (and anything they conflict with) to be considered for sco= ring. > > 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.