Element Rating

The rating value serves to evaluate the quality of addresses on the basis of comparison score values, etc. Rating configuration is performed with the help of pseudo inputs included in the group called scoring:

Name

Type

Required

Description

When

String

Yes

Determines when the rate value is written.

Rate

String

Yes

Integer expression whose result is assigned into rate column after accomplishing the when condition.

Output Any Best

Boolean

Yes

Indicates whether to output any of the best proposals to the output (true) or not (false). If there is exactly one best proposal, it is written out regardless of this flag.



Example: Example
<Rating>
  <rate>1</rate>
  <when>10 * scoring.count_component >= scoring.value AND scoring.count_best == 1</when>
</Rating>
If the total address score is less than or equal to 10 * the count of address components and concurrently there is just one address it will evaluate to the number 1. Examplary configuration for DictionaryLookupdentifier:
<rating>
  <Rating>
    <rate>1</rate>
    <when>10 * scoring.count_component >= scoring.value AND scoring.count_best == 1</when>
  </Rating>
  <Rating>
    <rate>2</rate>
    <when>scoring.value > 10 * scoring.count_component AND scoring.count_best == 1</when>
  </Rating>
  <Rating>
    <rate>3</rate>
    <when>10 * scoring.count_component >= scoring.value AND scoring.count_best > 1</when>
  </Rating>
  <Rating>
    <rate>4</rate>
    <when>scoring.value > 10 * scoring.count_component AND scoring.count_best > 1</when>
  </Rating>
  <Rating>
    <rate>5</rate>
    <when>scoring.count_best == 0</when>
  </Rating>
</rating>

iWay Software