class_docstr: Create multi-modal instances given the path to triples.
class_docstr_tok: ["Create","multi-modal","instances","given","the","path","to","triples","."]
docstr: Initialize the multi-modal triples factory.
  
  :param numeric_literals: shape: (num_entities, num_literals)
      the numeric literals as a dense matrix.
  :param literals_to_id:
      a mapping from literal names to their IDs, i.e., the columns in the `numeric_literals` matrix.
  :param kwargs:
      additional keyword-based parameters passed to :meth:`TriplesFactory.__init__`.
docstr_tok: ["Initialize","the","multi-modal","triples","factory",".",":","param","numeric_literals",":","shape",":","(","num_entities",",","num_literals",")","the","numeric","literals","as","a","dense","matrix",".",":","param","literals_to_id",":","a","mapping","from","literal","names","to","their","IDs",",","i.e.",",","the","columns","in","the","`","numeric_literals","`","matrix",".",":","param","kwargs",":","additional","keyword-based","parameters","passed","to",":","meth",":","`","TriplesFactory.__init__","`","."]
code: def __init__(
      self,
      *,
      numeric_literals: np.ndarray,
      literals_to_id: Mapping[str, int],
      **kwargs,
  ) -> None:
      """Initialize the multi-modal triples factory.
  
      :param numeric_literals: shape: (num_entities, num_literals)
          the numeric literals as a dense matrix.
      :param literals_to_id:
          a mapping from literal names to their IDs, i.e., the columns in the `numeric_literals` matrix.
      :param kwargs:
          additional keyword-based parameters passed to :meth:`TriplesFactory.__init__`.
      """
      super().__init__(**kwargs)
      self.numeric_literals = numeric_literals
      self.literals_to_id = literals_to_id
  
imports: import logging
  import pathlib
  from typing import Any, ClassVar, Dict, Iterable, Mapping, MutableMapping, Optional, TextIO, Tuple, Union
  import numpy
  import pandas
  import torch
  from .triples_factory import TriplesFactory
  from .utils import load_triples
  from ..typing import EntityMapping, LabeledTriples, MappedTriples
label_desc: Use image node_id 1 to create a new TriplesNumericLiteralsFactory object from inherited base classes: TriplesFactory with example: obj = TriplesNumericLiteralsFactory()