User:Mitcho/ParserTNG: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 114: Line 114:
Now lower the score for >1 direct objects:
Now lower the score for >1 direct objects:


  score = score * (1-0.5**(#DO-1)) (example algorithm)
  score = score * (0.5**(#DO-1)) (example algorithm)


<b>EX:</b> <code>score = 1</code>, with 2 direct objects, so
<b>EX:</b> <code>score = 1</code>, with 2 direct objects, so
  score = 1 * (1-0.5**1) = 1 * 0.5 = 0.5
  score = 1 * (0.5**1) = 1 * 0.5 = 0.5
308

edits

Navigation menu