Documentation Center

Configurable weights

One major difference in the updated implementation is in the level of control now supported by the scoring process. The segments are decomposed into elements, where each element type is assigned a weight that represents its maximum effort. (In the old implementation, all elements were equally weighted.) The new implementation provides granular control over the weight on elements within the segment.

The following segment elements are recognized and the weights for most of them can be configured individually:
  • word

    Represents one unit of work, and is constant; all other element weights are assigned relative to a word unit.

  • number

    By default, numbers have less weight than words, but this setting can be changed. We expect that a difference in numbers is not as important as a difference between words.

  • outer placeholder

    The implementation allows for leading and trailing placeholders to be weighted differently from words, as well as from inner placeholders.

  • inner placeholders

    Placeholders where at least one non-placeholder element (such as a word or number) occurs before and after at some point in the segment. For example, consider the text Please click <a href=????????? >this text </a> to advance forward. The anchor tags are converted into placeholders, which are both considered inner tags.

The following table shows the configurable segment element weights along with their default values. You can change these values by editing the tm.properties file.
TM PropertyValue Set (Default)Description
tm_score_number_weight0 ??? 1 (.2)The weight assigned to a numeric element. By default, number differences are weighted less than word differences.
tm_score_outer_placeholder_weight0 ??? 1 (.1)Outside placeholders by default are weighted less than inner placeholders, and both are weighted significantly less then words and numbers.
tm_score_inner_placeholder_weight0 ??? 1 (.25)The weight assigned to an inner placeholder. By default, inner placeholders require more review than outer placeholders.