ProcessedTuple

class ProcessedTuple(mapped_triples: LongTensor, alignment: LongTensor, translation_kwargs: Mapping[str, Any])[source]

Bases: NamedTuple

The result of processing a pair of triples factories.

Create new instance of ProcessedTuple(mapped_triples, alignment, translation_kwargs)

Attributes Summary

alignment

the updated alignment, shape: (2, m)

mapped_triples

the merged id-based triples, shape: (n, 3)

translation_kwargs

additional keyword-based parameters for adjusting label-to-id mappings

Attributes Documentation

Parameters:
  • mapped_triples (LongTensor) –

  • alignment (LongTensor) –

  • translation_kwargs (Mapping[str, Any]) –

alignment: LongTensor

the updated alignment, shape: (2, m)

mapped_triples: LongTensor

the merged id-based triples, shape: (n, 3)

translation_kwargs: Mapping[str, Any]

additional keyword-based parameters for adjusting label-to-id mappings