class_docstr: Stores inverse frequencies and inverse mappings in a given triples factory.
class_docstr_tok: ["Stores","inverse","frequencies","and","inverse","mappings","in","a","given","triples","factory","."]
docstr: Make a new triples factory containing neither duplicate nor inverse relationships.
docstr_tok: ["Make","a","new","triples","factory","containing","neither","duplicate","nor","inverse","relationships","."]
code: def apply(
      self, triples_factory: CoreTriplesFactory
  ) -> CoreTriplesFactory:
      """Make a new triples factory containing neither duplicate nor inverse relationships."""
      return triples_factory.new_with_restriction(
          relations=self.relations_to_delete,
          invert_relation_selection=True,
      )
  
imports: import logging
  from typing import Collection, Iterable, List, Mapping, Optional, Set, Tuple, TypeVar, Union, cast
  import click
  import numpy
  import scipy.sparse
  import torch
  from pykeen.datasets.base import EagerDataset
  from pykeen.triples.triples_factory import CoreTriplesFactory, TriplesFactory, cat_triples
  from pykeen.typing import MappedTriples
  from pykeen.utils import compact_mapping, get_connected_components
label_desc: Use image node_id 2 for calling the Sealant obj's underlying member method code with example usage: obj.apply(triples_factory) and returns: triples_factory