Skip to content

Judgements

matchlab.eval.judgements

Representation of human judgements.

Classes:

  • Judgement

    A user's decision on how one reviewed cluster's leaves split into entities.

Judgement

Bases: BaseModel


              flowchart TD
              matchlab.eval.judgements.Judgement[Judgement]

              

              click matchlab.eval.judgements.Judgement href "" "matchlab.eval.judgements.Judgement"
            

A user's decision on how one reviewed cluster's leaves split into entities.

Methods:

Attributes:

tag class-attribute instance-attribute

tag: str | None = None

shown class-attribute instance-attribute

shown: list[int] = Field(description='Leaf IDs of the whole cluster shown to the user')

endorsed class-attribute instance-attribute

endorsed: list[list[int]] = Field(description='Leaf IDs the user grouped together, one list per endorsed entity')

check_no_duplicates

check_no_duplicates() -> Self

Reject leaf IDs repeated within shown, or within endorsed.

check_consistency

check_consistency() -> Self

Check that endorsed's leaves are exactly the ones in shown.