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_path(
      cls,
      path: Union[str, pathlib.Path, TextIO],
      *,
      path_to_numeric_triples: Union[
          None, str, pathlib.Path, TextIO
      ] = None,
      **kwargs,
  ) -> "TriplesNumericLiteralsFactory":  # noqa: D102
      if path_to_numeric_triples is None:
          raise ValueError(
              f"{cls.__name__} requires path_to_numeric_triples."
          )
      numeric_triples = load_triples(path_to_numeric_triples)
      triples = load_triples(path)
      return cls.from_labeled_triples(
          triples=triples, numeric_triples=numeric_triples, **kwargs
      )
  
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 2 for calling the TriplesNumericLiteralsFactory obj's underlying member method code with example usage: obj.from_path(cls, path) and returns: cls