Package info.textgrid.lab.collatex.model.equivalences

The data model for manually adapted equivalence sets.

See: Description

Package info.textgrid.lab.collatex.model.equivalences Description

The data model for manually adapted equivalence sets.

Current equivalence model

This model is subject to be enhanced!

This package contains a model for normalisations that will be created by the user and associated to a collation set. The normalization is used to compare tokens of the witnesses to collate, as described below.

Each normalization contains a list of equivalences. Each equivalence contains a list of tokens that are to be considered equal. Equivalences can be local or global, for local equivalences, the respective tokens' positions are taken in consideration.

Comparison algorithm

The comparison algorithm's result is equivalent to the following:

Let w and v be tokens to be compared.

If w's normalized content equals v's normalized content, the tokens are considered equivalent. Otherwise, we extract the set of equivalences matching w, E(w) as follows: For each equivalence e in the whole equivalence set, we check whether the set of tokens of e contains at least one token t that is considered equal to w. If the equivalence e is global, t and w match if their respective normalized contents are equal. If e is local, additionally the positions of t and w must be equal.

A similar set of equivalences is calculated for v. If and only if the intersection of E(v) and E(w) is non-empty, w and v are considered equivalent.

See Also:
EquivalenceSetTokenComparator

Copyright © 2013 TextGrid. All Rights Reserved.