ScorePack

class ScorePack(result: Tensor, scores: Tensor)[source]

Bases: object

A pair of result triples and scores.

Attributes Summary

result

the ID-based triples, shape: (n, 3)

scores

the scores

Methods Summary

process([factory])

Start post-processing scores.

Attributes Documentation

Parameters:
result: Tensor = <dataclasses._MISSING_TYPE object>

the ID-based triples, shape: (n, 3)

scores: Tensor = <dataclasses._MISSING_TYPE object>

the scores

Methods Documentation

process(factory: CoreTriplesFactory | None = None, **kwargs) TriplePredictions[source]

Start post-processing scores.

Parameters:

factory (CoreTriplesFactory | None)

Return type:

TriplePredictions