class_docstr: Create multi-modal instances given the path to triples.
class_docstr_tok: ["Create","multi-modal","instances","given","the","path","to","triples","."]
code: def from_labeled_triples(
      cls,
      triples: LabeledTriples,
      *,
      numeric_triples: LabeledTriples = None,
      **kwargs,
  ) -> "TriplesNumericLiteralsFactory":  # noqa: D102
      if numeric_triples is None:
          raise ValueError(f"{cls.__name__} requires numeric_triples.")
      base = TriplesFactory.from_labeled_triples(
          triples=triples, **kwargs
      )
      numeric_literals, literals_to_id = create_matrix_of_literals(
          numeric_triples=numeric_triples,
          entity_to_id=base.entity_to_id,
      )
      return cls(
          entity_to_id=base.entity_to_id,
          relation_to_id=base.relation_to_id,
          mapped_triples=base.mapped_triples,
          create_inverse_triples=base.create_inverse_triples,
          numeric_literals=numeric_literals,
          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 3 for calling the TriplesNumericLiteralsFactory obj's underlying member method code with example usage: obj.from_labeled_triples(cls, triples) and returns: cls