Sealant
- class Sealant(triples_factory: CoreTriplesFactory, minimum_frequency: float | None = None, symmetric: bool = True)[source]
Bases:
object
Stores inverse frequencies and inverse mappings in a given triples factory.
Index the inverse frequencies and the inverse relations in the triples factory.
- Parameters:
triples_factory (CoreTriplesFactory) – The triples factory to index.
minimum_frequency (float) – The minimum overlap between two relations’ triples to consider them as inverses. The default value, 0.97, is taken from Toutanova and Chen (2015), who originally described the generation of FB15k-237.
symmetric (bool) – If the similarities are computed as symmetric
- Raises:
NotImplementedError – If symmetric is False
Methods Summary
apply
(triples_factory)Make a new triples factory containing neither duplicate nor inverse relationships.
Methods Documentation
- apply(triples_factory: CoreTriplesFactory) CoreTriplesFactory [source]
Make a new triples factory containing neither duplicate nor inverse relationships.
- Parameters:
triples_factory (CoreTriplesFactory)
- Return type: