ProcessedTuple

class ProcessedTuple(mapped_triples: Tensor, alignment: Tensor, 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:
alignment: Tensor

the updated alignment, shape: (2, m)

mapped_triples: Tensor

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

translation_kwargs: Mapping[str, Any]

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