barzerman / barzer

barzer engine code
MIT License
2 stars 0 forks source link

meanings don't work #556

Closed nchepanov closed 11 years ago

nchepanov commented 11 years ago

or I don't understand how to use them.

мининги

  <m p="100" n="GeForce">
    <w v="GeForce"/>
    <w v="джифорс"/>
  </m>

правило:

<stmt>
   <pat>
      <t>GeForce</t>
   </pat>
   <tran>
     <t>работает</t>
   </tran>
</stmt>

config:

<meanings automode="one" threshold="10" defprio="100" file="site/alpha/1000011/synonyms.xml"/>

@0xd34df00d , please, have a look =)

nchepanov commented 11 years ago

and the problem is here:

eu.barzer.net user: nikitos3000 query: джифорс

0xd34df00d commented 11 years ago

Sure they don't in this case.

Priority is "reversed", 0 is higher priority than 100. Setting threshold to 10 effectively cancels the GeForce meaning since it has lower priority.

This is documented behavior, and it is documented in the wiki page. Closing as NOTABUG.