[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lojban] ScoreGismu - the latest version ?



de'i li 08 pi'e 10 pi'e 2010 la'o fy. najrut .fy. cusku zoi skamyxatra.
> http://jbotcan.org/en/res/1219.html talks 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 can be
solved by changing lines 114-118 from:

>  if($gismu =~ /$lcs[0].?$lcs[1]/) {
>   if($word =~ /$lcs[0].?$lcs[1]/) {
>    $score += $weight * 2 / @wordSequence;
>   }
>  }

to:

>  $score += $weight * 2 / @wordSequence
>   if $gismu =~ /$lcs[0]$lcs[1]/ && $word =~ /$lcs[0]$lcs[1]/
>   || $gismu =~ /$lcs[0].$lcs[1]/ && $word =~ /$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 scoring.

mu'omi'e .kamymecraijun.

-- 
ko na xalni

-- 
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@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.